diff --git a/CLAUDE.md b/CLAUDE.md index 8af29174f..655ecce41 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -156,21 +156,31 @@ Relational state (issues, alert rules, dashboards, org config, keys) is Drizzle/ `packages/db/src/schema/`, on the PlanetScale `main` branch (prd — the only stage with a database), reached from Workers via the Hyperdrive binding `MAPLE_DB`. +- Drizzle is Effect-native (`drizzle-orm/effect-postgres` over `@effect/sql-pg`, node-postgres + underneath): `Database.execute` takes an Effect callback, queries are `yield*`ed, and + `db.transaction` takes an Effect callback. Driver failures become `DatabaseError` at that + boundary; a `Schema.TaggedError` failed inside a transaction rolls it back and reaches the caller + as itself. Raw `db.execute(sql…)` returns the driver's result object — wrap it in `rawRows`. - App code keeps epoch-ms numbers and converts at the drizzle boundary — use `msToDate` / `dateToMs` from `packages/backend/src/platform/time.ts` rather than bare `new Date(ms)` / - `.getTime()`, including inside Promise-land helpers. Never read driver write-result shapes - — use `.returning()` + length. `count(*)` needs `::int` (bigint → string). + `.getTime()`. Never read driver write-result shapes — use `.returning()` + length. `count(*)` + needs `::int` (bigint → string). - Layers: `DatabasePgLive` (Workers) and `DatabasePgliteLive` (tests/local; `createTestDb()` in `packages/backend/src/platform/test-pglite.ts`). -- One Postgres connection per invocation — request, cron tick, or Workflow run — created lazily and +- One Postgres pool per invocation — request, cron tick, or Workflow run — created lazily and closed at the boundary, which is Cloudflare's documented Hyperdrive shape. The single primitive is - `makePgConnectionScope` in `packages/backend/src/platform/pg-connection-scope.ts`; `pgConnectionMiddleware` - installs it for HTTP, `withPgConnectionScope` for cron. Sockets are request-bound on Workers, so a - connection may be reused freely WITHIN an invocation but must never outlive it. `max` is 5 - (a ceiling, not a reservation — capping it at 1 serialized cron ticks and cost 3–6x on p50) and the - dial is bounded so a stall lands as `error.type = CONNECT_TIMEOUT` instead of hanging. -- Migrations: `bun run --cwd packages/db db:generate`; CI applies them against the branch's DIRECT - port 5432 (never a pooler) before `alchemy deploy`. PGlite applies them at layer build. + `makePgConnectionScope` in `packages/backend/src/platform/pg-connection-scope.ts`; + `withPgConnectionScope` installs it around each worker's request handler and cron tick. Sockets are + request-bound on Workers, so a connection may be reused freely WITHIN an invocation but must never + outlive it. `max` is 5 (a ceiling, not a reservation — capping it at 1 serialized cron ticks and cost + 3–6x on p50). The 10s bound is on each client's DIAL, never the pool: pg-pool applies a pool-level + `connectionTimeoutMillis` to queue waits too. A stalled dial lands as `error.type = ConnectionError` + (a refused one carries the socket code, `ECONNREFUSED`). Fork DB work off a request only with + `forkRequestScoped`, which interrupts it at the response but lets a DB call already under way finish. +- Migrations: `bun run --cwd packages/db db:generate`. Production is applied BY HAND before the + Worker deploy: `bun run --cwd packages/db ps:migrations-preflight main` (read-only; the v1 + migrator refuses unmatched rows and replays unrecorded folders), then `bun run migrate:prod` + against the DIRECT port 5432 (never a pooler). PGlite applies them at layer build. - **PR preview deploys are label-gated** (2026-08, cost — re-enabled by `fd00bcd412`). A PR gets a preview only while it carries the `preview` label; `deploy-pr-preview.yml` triggers on `opened, reopened, synchronize, labeled, unlabeled, closed` and tears the stack down the moment diff --git a/apps/api/package.json b/apps/api/package.json index bb6a91898..feb86a9ee 100644 --- a/apps/api/package.json +++ b/apps/api/package.json @@ -35,13 +35,13 @@ "@maple/widgets": "workspace:*", "@tinybirdco/sdk": "catalog:tinybird", "alchemy": "catalog:alchemy", - "drizzle-orm": "^0.45.1", + "drizzle-orm": "1.0.0-rc.5-5935859", "effect": "catalog:effect" }, "devDependencies": { "@cloudflare/workers-types": "catalog:alchemy", "@effect/language-service": "catalog:effect", - "@electric-sql/pglite": "^0.5.2", + "@electric-sql/pglite": "^0.5.6", "@types/node": "catalog:tooling", "atmn": "^1.1.17", "typescript": "catalog:tooling", diff --git a/apps/api/test/integration/pg-connection-scope.integration.test.ts b/apps/api/test/integration/pg-connection-scope.integration.test.ts index 27f4a135a..636b8617f 100644 --- a/apps/api/test/integration/pg-connection-scope.integration.test.ts +++ b/apps/api/test/integration/pg-connection-scope.integration.test.ts @@ -1,14 +1,20 @@ import { afterAll, assert, describe, it } from "@effect/vitest" -import { createMaplePgSocket } from "@maple/db/client" +import { createMaplePgPool } from "@maple/db/client" import { sql } from "drizzle-orm" -import { Effect, Exit, Tracer } from "effect" -import type { DatabaseClient } from "@maple/backend/platform/DatabaseLive" -import { makePgConnectionScope, MAX_CONNECTIONS } from "@maple/backend/platform/pg-connection-scope" +import { Effect, Tracer } from "effect" +import { forkRequestScoped } from "@maple/backend/platform/fork-request-scoped" +import { + makePgConnectionScope, + MAX_CONNECTIONS, + PgConnectionScope, + withPgConnectionScopeOf, +} from "@maple/backend/platform/pg-connection-scope" import { isPostgresConnectionError, postgresErrorType } from "@maple/backend/platform/postgres-errors" +import { rawRows } from "@maple/backend/platform/raw-rows" /** * These assertions are the reason this suite exists. The unit tests replace the - * dial with a fake, so they can only prove the scope calls `openSocket` once — + * pool with a fake, so they can only prove the scope calls `openPool` once — * not that one real TCP connection serves the whole request. Here the proof * comes from the server: a separate admin connection counts backends in * `pg_stat_activity`. @@ -40,7 +46,7 @@ const dbSpans = (spans: ReadonlyArray) => /** * `describe.skipIf` still evaluates the body, so the setup below needs a URL it - * can parse even when the suite is skipped. Constructing a postgres.js client + * can parse even when the suite is skipped. Constructing a node-postgres pool * dials nothing, so the placeholder never reaches the network. */ const PLACEHOLDER_URL = "postgres://skipped:skipped@127.0.0.1:1/skipped" @@ -48,18 +54,19 @@ const PLACEHOLDER_URL = "postgres://skipped:skipped@127.0.0.1:1/skipped" describe.skipIf(PG_URL === undefined)("PgConnectionScope against a real Postgres", () => { const url = PG_URL ?? PLACEHOLDER_URL const { admin: adminUrl, database } = adminUrlFor(url) - const adminSocket = createMaplePgSocket(adminUrl, { maxConnections: 1 }) + const adminPool = createMaplePgPool(adminUrl, { maxConnections: 1, connectTimeoutSeconds: 10 }) afterAll(async () => { - await adminSocket.end().catch(() => undefined) + await adminPool.end().catch(() => undefined) }) /** Backends currently open against the test database, excluding the admin's own. */ const backends = async (): Promise => { - const rows = await adminSocket.sql>` - select count(*)::int as n from pg_stat_activity where datname = ${database} - ` - return rows[0]?.n ?? 0 + const result = await adminPool.query<{ n: number }>( + "select count(*)::int as n from pg_stat_activity where datname = $1", + [database], + ) + return result.rows[0]?.n ?? 0 } /** @@ -94,22 +101,22 @@ describe.skipIf(PG_URL === undefined)("PgConnectionScope against a real Postgres const baseline = await settle() const scope = makePgConnectionScope(url) - // Sampled AFTER each execute, not inside it: the client is lazy, so before + // Sampled AFTER each execute, not inside it: the pool is lazy, so before // the first statement runs there is legitimately no connection yet. const observed: Array = [] try { for (let i = 0; i < 5; i++) { - await Effect.runPromise(scope.run((db: DatabaseClient) => db.execute(sql`select 1 as one`))) + await Effect.runPromise(scope.run((db) => db.execute(sql`select 1 as one`))) observed.push((await backends()) - baseline) } } finally { - await scope.close() + await Effect.runPromise(scope.close) } // The claim this rests on: five SEQUENTIAL executes, one connection. Each of // these used to be its own handshake and its own outbound slot. Raising the - // pool ceiling does not change this — postgres.js opens a second socket only - // when a second statement is actually in flight. + // pool ceiling does not change this — node-postgres opens a second socket + // only when a second statement is actually in flight. assert.deepStrictEqual(observed, [1, 1, 1, 1, 1]) assert.strictEqual(await waitForDelta(baseline, 0), 0) }) @@ -122,8 +129,8 @@ describe.skipIf(PG_URL === undefined)("PgConnectionScope against a real Postgres await Effect.runPromise( Effect.all( [ - scope.run((db: DatabaseClient) => db.execute(sql`select 'alpha_marker' as tag`)), - scope.run((db: DatabaseClient) => db.execute(sql`select 'beta_marker' as tag`)), + scope.run((db) => db.execute(sql`select 'alpha_marker' as tag`)), + scope.run((db) => db.execute(sql`select 'beta_marker' as tag`)), ], { concurrency: 2 }, ).pipe(Effect.withTracer(tracer)), @@ -131,10 +138,11 @@ describe.skipIf(PG_URL === undefined)("PgConnectionScope against a real Postgres const backendsDuring = (await backends()) - baseline - // The real test of the per-call `wrapMaplePgClient`. Drizzle fixes its - // logger at construction, so a single shared wrapper would put both - // statements on whichever span looked last. The unit suite can only assert - // the wrappers differ; this asserts the consequence that actually matters. + // The real test of the per-call statement collector. Drizzle fixes its + // logger at construction, so the logger reads the collector off the calling + // fiber; a single shared collector would put both statements on whichever + // span looked last. The unit suite can only assert the calls see different + // collectors; this asserts the consequence that actually matters. const texts = dbSpans(spans).map((span) => String(span.attributes.get("db.query.text") ?? "")) assert.strictEqual(texts.length, 2) const alpha = texts.filter((text) => text.includes("alpha_marker")) @@ -152,7 +160,7 @@ describe.skipIf(PG_URL === undefined)("PgConnectionScope against a real Postgres assert.isAtLeast(backendsDuring, 1) assert.isAtMost(backendsDuring, MAX_CONNECTIONS) - await scope.close() + await Effect.runPromise(scope.close) assert.strictEqual(await waitForDelta(baseline, 0), 0) }) @@ -161,7 +169,7 @@ describe.skipIf(PG_URL === undefined)("PgConnectionScope against a real Postgres // four 300ms statements queue head-to-tail and take ~1.2s; a cron tick issuing // thousands is what took `SELECT actors` from p50 928ms to 5687ms in // production. `pg_sleep` makes the serialization observable in wall time, - // which no fake socket can do. + // which no fake pool can do. const baseline = await settle() const scope = makePgConnectionScope(url) const sleepSeconds = 0.3 @@ -171,7 +179,7 @@ describe.skipIf(PG_URL === undefined)("PgConnectionScope against a real Postgres await Effect.runPromise( Effect.all( Array.from({ length: concurrency }, () => - scope.run((db: DatabaseClient) => db.execute(sql`select pg_sleep(${sleepSeconds})`)), + scope.run((db) => db.execute(sql`select pg_sleep(${sleepSeconds})`)), ), { concurrency }, ), @@ -183,7 +191,7 @@ describe.skipIf(PG_URL === undefined)("PgConnectionScope against a real Postgres assert.isBelow(elapsedMs, sleepSeconds * 1000 * concurrency * 0.6) assert.isAtMost((await backends()) - baseline, MAX_CONNECTIONS) - await scope.close() + await Effect.runPromise(scope.close) assert.strictEqual(await waitForDelta(baseline, 0), 0) }) @@ -193,9 +201,7 @@ describe.skipIf(PG_URL === undefined)("PgConnectionScope against a real Postgres const table = `scope_txn_${Date.now()}` await Effect.runPromise( - scope.run((db: DatabaseClient) => - db.execute(sql.raw(`create table ${table} (id int primary key)`)), - ), + scope.run((db) => db.execute(sql.raw(`create table ${table} (id int primary key)`))), ) // A transaction pins whichever connection it runs on for its whole duration. @@ -205,30 +211,160 @@ describe.skipIf(PG_URL === undefined)("PgConnectionScope against a real Postgres const [, queued] = await Effect.runPromise( Effect.all( [ - scope.run((db: DatabaseClient) => - db.transaction(async (tx) => { - await tx.execute(sql.raw(`insert into ${table} (id) values (1)`)) - await tx.execute(sql.raw(`insert into ${table} (id) values (2)`)) - }), + scope.run((db) => + db.transaction((tx) => + Effect.gen(function* () { + yield* tx.execute(sql.raw(`insert into ${table} (id) values (1)`)) + yield* tx.execute(sql.raw(`insert into ${table} (id) values (2)`)) + }), + ), ), - scope.run((db: DatabaseClient) => db.execute(sql`select 'queued' as tag`)), + scope.run((db) => db.execute(sql`select 'queued' as tag`)), ], { concurrency: 2 }, ), ) assert.isDefined(queued) - const rows = await Effect.runPromise( - scope.run((db: DatabaseClient) => db.execute(sql.raw(`select count(*)::int as n from ${table}`))), + const rows = rawRows( + await Effect.runPromise( + scope.run((db) => + db.execute<{ n: number }>(sql.raw(`select count(*)::int as n from ${table}`), "objects"), + ), + ), ) - assert.strictEqual(Number((rows as Array<{ n: number }>)[0]?.n), 2) + assert.strictEqual(rows[0]?.n, 2) assert.isAtMost((await backends()) - baseline, MAX_CONNECTIONS) - await Effect.runPromise(scope.run((db: DatabaseClient) => db.execute(sql.raw(`drop table ${table}`)))) - await scope.close() + await Effect.runPromise(scope.run((db) => db.execute(sql.raw(`drop table ${table}`)))) + await Effect.runPromise(scope.close) assert.strictEqual(await waitForDelta(baseline, 0), 0) }) + it("lets a statement wait for a busy pool longer than the dial bound", async () => { + // pg-pool applies a POOL-level `connectionTimeoutMillis` to waiting for a free + // client too, so with the bound there a fan-out wider than the pool failed as + // "timeout exceeded when trying to connect" against a healthy server. The + // bound lives on each client's dial instead; the queue waits. + const dialBoundSeconds = 0.3 + const scope = makePgConnectionScope(url, undefined, { + openPool: (options) => + createMaplePgPool(url, { + ...options, + maxConnections: 1, + connectTimeoutSeconds: dialBoundSeconds, + }), + }) + + const results = await Effect.runPromise( + Effect.all( + [ + scope.run((db) => db.execute(sql`select pg_sleep(0.8)`)), + scope.run((db) => db.execute(sql`select 'waited' as tag`)), + ], + { concurrency: 2 }, + ).pipe(Effect.exit), + ) + + await Effect.runPromise(scope.close) + assert.isTrue(results._tag === "Success", "the queued statement timed out waiting for the pool") + }) + + it("reports a COMMIT the server rejects as a DatabaseError, not a defect", async () => { + // `@effect/sql` runs COMMIT under `orDie`. A deferred foreign key is checked + // only there, so every statement succeeds and the commit fails. + const scope = makePgConnectionScope(url) + const parent = `scope_commit_parent_${Date.now()}` + const child = `scope_commit_child_${Date.now()}` + const { spans, tracer } = makeRecordingTracer() + try { + await Effect.runPromise( + scope.run((db) => db.execute(sql.raw(`create table ${parent} (id int primary key)`))), + ) + await Effect.runPromise( + scope.run((db) => + db.execute( + sql.raw( + `create table ${child} (parent_id int references ${parent} (id) deferrable initially deferred)`, + ), + ), + ), + ) + + const error = await Effect.runPromise( + scope + .run((db) => + db.transaction((tx) => + tx.execute(sql.raw(`insert into ${child} (parent_id) values (1)`)), + ), + ) + .pipe(Effect.flip, Effect.withTracer(tracer)), + ) + + assert.strictEqual(error._tag, "@maple/api/lib/DatabaseError") + assert.strictEqual(postgresErrorType(error), "23503") + assert.isFalse(isPostgresConnectionError(error)) + assert.strictEqual(dbSpans(spans).at(-1)?.attributes.get("error.type"), "23503") + } finally { + await Effect.runPromise( + scope.run((db) => db.execute(sql.raw(`drop table if exists ${child}; `))).pipe(Effect.ignore), + ) + await Effect.runPromise( + scope.run((db) => db.execute(sql.raw(`drop table if exists ${parent}`))).pipe(Effect.ignore), + ) + await Effect.runPromise(scope.close) + } + }) + + it("lands a DB write forked just before the response", async () => { + // The API worker's nesting: the request Scope closes inside the connection + // scope. node-postgres checks a client out on a later tick, so without + // draining, the forked statement was still queued when the request Scope + // interrupted it and never ran — with or without a warm connection. + const setup = makePgConnectionScope(url) + const table = `scope_fork_${Date.now()}` + await Effect.runPromise(setup.run((db) => db.execute(sql.raw(`create table ${table} (tag text)`)))) + try { + for (const warm of [false, true]) { + const tag = warm ? "warm" : "cold" + const scope = makePgConnectionScope(url) + const write = Effect.gen(function* () { + const current = yield* PgConnectionScope + yield* current!.run((db) => db.execute(sql.raw(`insert into ${table} values ('${tag}')`))) + }) + await Effect.runPromise( + withPgConnectionScopeOf( + scope, + Effect.scoped( + Effect.gen(function* () { + if (warm) { + const current = yield* PgConnectionScope + yield* current!.run((db) => db.execute(sql`select 1`)) + } + yield* forkRequestScoped(write) + return "response" + }), + ), + ), + ) + const rows = rawRows( + await Effect.runPromise( + setup.run((db) => + db.execute<{ n: number }>( + sql.raw(`select count(*)::int as n from ${table} where tag = '${tag}'`), + "objects", + ), + ), + ), + ) + assert.strictEqual(rows[0]?.n, 1, `${tag} fork did not land`) + } + } finally { + await Effect.runPromise(setup.run((db) => db.execute(sql.raw(`drop table ${table}`)))) + await Effect.runPromise(setup.close) + } + }) + it("classifies a refused connection as a connection error on a real socket", async () => { // Port 1 is refused immediately. This closes the loop on postgres-errors.ts, // which the unit suite only exercises against hand-built error objects, and @@ -236,51 +372,48 @@ describe.skipIf(PG_URL === undefined)("PgConnectionScope against a real Postgres const scope = makePgConnectionScope("postgres://maple:maple@127.0.0.1:1/never") const { spans, tracer } = makeRecordingTracer() - const exit = await Effect.runPromiseExit( - scope.run((db: DatabaseClient) => db.execute(sql`select 1`)).pipe(Effect.withTracer(tracer)), + // `flip` makes the expected failure the success channel, typed as the + // `DatabaseError` the scope absorbs the driver's refusal into. + const error = await Effect.runPromise( + scope.run((db) => db.execute(sql`select 1`)).pipe(Effect.flip, Effect.withTracer(tracer)), ) - assert.isTrue(Exit.isFailure(exit)) - if (Exit.isFailure(exit)) { - const error = exit.cause.reasons.find((reason) => reason._tag === "Fail")?.error - assert.isDefined(postgresErrorType(error as never)) - assert.isTrue(isPostgresConnectionError(error as never)) - } + assert.isDefined(postgresErrorType(error)) + assert.isTrue(isPostgresConnectionError(error)) const [span] = dbSpans(spans) assert.isDefined(span) assert.strictEqual(span.attributes.get("db.connect.failed"), true) assert.isDefined(span.attributes.get("error.type")) - await scope.close() + await Effect.runPromise(scope.close) }) it("opens one connection for a whole fan-out against an unreachable origin", async () => { // The production shape this exists for: a request whose branches all miss // the org-config memo, against an origin that cannot be reached. Each branch - // must reuse the scope's one client rather than creating its own — an + // must reuse the scope's one pool rather than creating its own — an // unreachable origin should cost one connection attempt's worth of outbound // slot, not N. // - // Real clients, counted: `openSocket` wraps the production constructor - // rather than replacing it, so this measures the same code path the unit - // test fakes. + // Real pools, counted: `openPool` wraps the production constructor rather + // than replacing it, so this measures the same code path the unit test fakes. let creations = 0 const scope = makePgConnectionScope("postgres://maple:maple@127.0.0.1:1/never", undefined, { // The seam forwards the production options rather than inventing its own, - // so this measures the same client the request path builds. - openSocket: (options) => { + // so this measures the same pool the request path builds. + openPool: (options) => { creations += 1 - return createMaplePgSocket("postgres://maple:maple@127.0.0.1:1/never", options) + return createMaplePgPool("postgres://maple:maple@127.0.0.1:1/never", options) }, }) // Sequential on purpose: a concurrent version would pass trivially. The case // that matters is the branch arriving after the previous failure resolved, - // which must not decide to start over with a new client. + // which must not decide to start over with a new pool. const results: Array<"ok" | "rejected"> = [] for (let i = 0; i < 10; i++) { results.push( - await Effect.runPromise(scope.run((db: DatabaseClient) => db.execute(sql`select 1`))) + await Effect.runPromise(scope.run((db) => db.execute(sql`select 1`))) .then(() => "ok" as const) .catch(() => "rejected" as const), ) @@ -292,6 +425,6 @@ describe.skipIf(PG_URL === undefined)("PgConnectionScope against a real Postgres ) assert.strictEqual(creations, 1) - await scope.close() + await Effect.runPromise(scope.close) }) }) diff --git a/bun.lock b/bun.lock index 07c57d20b..58fbdc53a 100644 --- a/bun.lock +++ b/bun.lock @@ -92,13 +92,13 @@ "@maple/widgets": "workspace:*", "@tinybirdco/sdk": "catalog:tinybird", "alchemy": "catalog:alchemy", - "drizzle-orm": "^0.45.1", + "drizzle-orm": "1.0.0-rc.5-5935859", "effect": "catalog:effect", }, "devDependencies": { "@cloudflare/workers-types": "catalog:alchemy", "@effect/language-service": "catalog:effect", - "@electric-sql/pglite": "^0.5.2", + "@electric-sql/pglite": "^0.5.6", "@types/node": "catalog:tooling", "atmn": "^1.1.17", "typescript": "catalog:tooling", @@ -611,14 +611,14 @@ "@maple/widgets": "workspace:*", "@tinybirdco/sdk": "catalog:tinybird", "alchemy": "catalog:alchemy", - "drizzle-orm": "^0.45.1", + "drizzle-orm": "1.0.0-rc.5-5935859", "effect": "catalog:effect", }, "devDependencies": { "@cloudflare/workers-types": "catalog:alchemy", "@effect/language-service": "catalog:effect", "@effect/vitest": "catalog:effect", - "@electric-sql/pglite": "^0.5.2", + "@electric-sql/pglite": "^0.5.6", "@types/node": "catalog:tooling", "typescript": "catalog:tooling", "vitest": "catalog:", @@ -676,10 +676,13 @@ "packages/db": { "name": "@maple/db", "dependencies": { - "@electric-sql/pglite": "^0.5.2", + "@effect/sql-pg": "4.0.0-rc.112", + "@effect/sql-pglite": "4.0.0-rc.112", + "@electric-sql/pglite": "^0.5.6", "@maple/domain": "workspace:*", - "drizzle-orm": "^0.45.1", + "drizzle-orm": "1.0.0-rc.5-5935859", "effect": "catalog:effect", + "pg": "^8.23.0", "postgres": "^3.4.9", }, "devDependencies": { @@ -687,7 +690,8 @@ "@effect/language-service": "catalog:effect", "@maple/widgets": "workspace:*", "@types/node": "catalog:tooling", - "drizzle-kit": "^0.31.9", + "@types/pg": "^8.23.1", + "drizzle-kit": "1.0.0-rc.5-5935859", "typescript": "catalog:tooling", "vitest": "catalog:", }, @@ -1201,7 +1205,7 @@ "@distilled.cloud/railway": ["@distilled.cloud/railway@1.0.0-rc.9", "", { "dependencies": { "@distilled.cloud/core": "1.0.0-rc.9" }, "peerDependencies": { "effect": ">=4.0.0-rc.112 || >=4.0.0" } }, "sha512-AI5SgoaPl7giY+HiYldwKihyCqhed5sjz1f8WwdRxTehswto/Rbx9vMX4FWeVgrQYXgkVK/NWcZuJJdCxSyM9Q=="], - "@drizzle-team/brocli": ["@drizzle-team/brocli@0.10.2", "", {}, "sha512-z33Il7l5dKjUgGULTqBsQBQwckHh5AbIuxhdsIxDDiZAzBOrZO6q9ogcWC65kU382AfynTfgNumVcNIjuIua6w=="], + "@drizzle-team/brocli": ["@drizzle-team/brocli@0.12.1", "", {}, "sha512-yHwomvolVafvUXhy5TdiJVkuNCxXn+bKOs2aWiWEQh/5YaV97Oa/abJz3dmx7lxgIUsUlS1Jl4mEfvJPo3YsVw=="], "@effect-agent/core": ["@effect-agent/core@0.1.0-beta.85", "", { "peerDependencies": { "effect": "^4.0.0-rc.112" } }, "sha512-EeqnGmz3C5YAh9dOvcdH5HwoMjRSGCrv5Y+4VNRGKpwXLzXkkO3Ln/HW7Fuv/MtevtKUKe8CbdNG8zQspho+/w=="], @@ -1227,6 +1231,10 @@ "@effect/sql-d1": ["@effect/sql-d1@4.0.0-rc.112", "", { "dependencies": { "@cloudflare/workers-types": "^5.20260822.1" }, "peerDependencies": { "effect": "^4.0.0-rc.112" } }, "sha512-Wxdr6aU3pBHqhyBiybzbHmEK7qZ2w4iy0IxBgJHe9BLleYzCxObOaBQI9qq/VZSqEvc0IaOBMpbk2zh3dlPNSQ=="], + "@effect/sql-pg": ["@effect/sql-pg@4.0.0-rc.112", "", { "dependencies": { "pg": "^8.23.0", "pg-connection-string": "^2.14.0", "pg-cursor": "^2.22.0", "pg-pool": "^3.14.0", "pg-types": "^4.1.0" }, "peerDependencies": { "effect": "^4.0.0-rc.112" } }, "sha512-UYUA3LAGH1Pg88Yau7eTlTLHRrIb/uTdxdPGxVcRdIjjrTzxtA7iKHR4hcmUeq5lQEcGLCopN7E4ffsAKF8vEQ=="], + + "@effect/sql-pglite": ["@effect/sql-pglite@4.0.0-rc.112", "", { "dependencies": { "@electric-sql/pglite": "^0.5.6" }, "peerDependencies": { "effect": "^4.0.0-rc.112" } }, "sha512-WExt8bbV/Q9J4z0ECkXyqBToljYfGzskv1TO1GwYU93zAfhaCk6hcj/O7ZVdET5TZqnMFu31gtvX6wpvT8L2yw=="], + "@effect/sql-sqlite-do": ["@effect/sql-sqlite-do@4.0.0-rc.112", "", { "peerDependencies": { "effect": "^4.0.0-rc.112" } }, "sha512-PewNVasimmhrdxYbNU91O0YlCcalIHOoF0H5XAWXrmzcEQrKM7kVCyb5h0gmJAZjBM4ZgWRvPY0PUOfbNmWchQ=="], "@effect/tsgo": ["@effect/tsgo@0.36.4", "", { "optionalDependencies": { "@effect/tsgo-darwin-arm64": "0.36.4", "@effect/tsgo-darwin-x64": "0.36.4", "@effect/tsgo-linux-arm": "0.36.4", "@effect/tsgo-linux-arm64": "0.36.4", "@effect/tsgo-linux-x64": "0.36.4", "@effect/tsgo-win32-arm64": "0.36.4", "@effect/tsgo-win32-x64": "0.36.4" }, "bin": { "effect-tsgo": "dist/effect-tsgo.cjs" } }, "sha512-fNmdUV6FgXnvIcG18AVS1SRXt7z9jsyBh5CKuJYmTsE+DgbLaWF0CevKHx7hQPcidDWRVmdJYfU66Jvc/ZEt6w=="], @@ -1249,7 +1257,7 @@ "@electric-sql/client": ["@electric-sql/client@1.5.22", "", { "dependencies": { "@microsoft/fetch-event-source": "^2.0.1" }, "optionalDependencies": { "@rollup/rollup-darwin-arm64": "^4.18.1" }, "bin": { "intent": "bin/intent.mjs" } }, "sha512-bOlxcMHc39OUnvXNKa/rxtBTPwpxk/SerasFFi8Psw3825/uGvsT7br8YTWzMaETxWu6kvaPc5CXdYTyx5eJgw=="], - "@electric-sql/pglite": ["@electric-sql/pglite@0.5.4", "", {}, "sha512-yYZUyyXrHU7tPlCjwZQJ6hIG9DscdCCn7Uk0mYKwC1FeHX286AbcmFveMiRBEak8e9iPupjsoVImN3yJZVed2g=="], + "@electric-sql/pglite": ["@electric-sql/pglite@0.5.8", "", {}, "sha512-n9tsbUOhwx2epK1V0ZG9Ar4SHWUju04dhmzZXiSBXwBoleOvIfals33NAaWgagQVAL4Rbvx/Ptsu3P+pA09f6Q=="], "@electric-sql/pglite-socket": ["@electric-sql/pglite-socket@0.0.20", "", { "peerDependencies": { "@electric-sql/pglite": "0.3.15" }, "bin": { "pglite-server": "dist/scripts/server.js" } }, "sha512-J5nLGsicnD9wJHnno9r+DGxfcZWh+YJMCe0q/aCgtG6XOm9Z7fKeite8IZSNXgZeGltSigM9U/vAWZQWdgcSFg=="], @@ -1261,10 +1269,6 @@ "@emnapi/wasi-threads": ["@emnapi/wasi-threads@1.2.2", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-c95qOXkHdydNKhscBTebqEC1CVAZpyqOfVfBzQ1qgzyl3gfeldUjIggDbIZgDKsHLgnsM+igH7TJ/eAasaVuMA=="], - "@esbuild-kit/core-utils": ["@esbuild-kit/core-utils@3.3.2", "", { "dependencies": { "esbuild": "~0.18.20", "source-map-support": "^0.5.21" } }, "sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ=="], - - "@esbuild-kit/esm-loader": ["@esbuild-kit/esm-loader@2.6.5", "", { "dependencies": { "@esbuild-kit/core-utils": "^3.3.2", "get-tsconfig": "^4.7.0" } }, "sha512-FxEMIkJKnodyA1OaCUoEvbYRkoZlLZ4d/eXFu9Fh8CbBBgP5EmZxrfTRyN0qpXZ4vOvqnE5YdRdcrmUUXuU+dA=="], - "@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.24.2", "", { "os": "aix", "cpu": "ppc64" }, "sha512-thpVCb/rhxE/BnMLQ7GReQLLN8q9qbHmI55F4489/ByVg2aQaQ6kbcLb6FHkocZzQhxc4gx0sCk0tJkKBFzDhA=="], "@esbuild/android-arm": ["@esbuild/android-arm@0.24.2", "", { "os": "android", "cpu": "arm" }, "sha512-tmwl4hJkCfNHwFB3nBa8z1Uy3ypZpxqxfTQOcHX+xRByyYgunVbZ9MzUUfb0RxaHIMnbHagwAxuTL+tnNM+1/Q=="], @@ -1455,6 +1459,8 @@ "@jridgewell/trace-mapping": ["@jridgewell/trace-mapping@0.3.31", "", { "dependencies": { "@jridgewell/resolve-uri": "^3.1.0", "@jridgewell/sourcemap-codec": "^1.4.14" } }, "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw=="], + "@js-temporal/polyfill": ["@js-temporal/polyfill@0.5.1", "", { "dependencies": { "jsbi": "^4.3.0" } }, "sha512-hloP58zRVCRSpgDxmqCWJNlizAlUgJFqG2ypq79DCvyv9tHjRYMDOcPFjzfl/A1/YxDvRCZz8wvZvmapQnKwFQ=="], + "@libsql/client": ["@libsql/client@0.17.4", "", { "dependencies": { "@libsql/core": "^0.17.4", "@libsql/hrana-client": "^0.10.0", "js-base64": "^3.7.5", "libsql": "^0.5.28", "promise-limit": "^2.7.0" } }, "sha512-lYayFWasDV78A+TjlEhr6ubb3odBV6OHjb+wdp8VQcyWWAEIjuwbCHaraEUS4m4yWoo0BvZo96It4VdzZRmRWw=="], "@libsql/core": ["@libsql/core@0.17.4", "", { "dependencies": { "js-base64": "^3.7.5" } }, "sha512-LqF9gIvnJ38nmAH1y/ChizHqDO/MO1wLgA96XrraulEEbqXxLjleSH92YWTolbuJKgPUmGu4aJk9W3UnAcxLOQ=="], @@ -2263,6 +2269,8 @@ "@types/node": ["@types/node@22.20.1", "", { "dependencies": { "undici-types": "~6.21.0" } }, "sha512-EANqOCF9QFyra+4pfxUcX9STKJpCLjMbObVzljIJomAWSnuSIEAvyzEU53GaajbXJEgdh0iEcPL+DGvpUd4k1Q=="], + "@types/pg": ["@types/pg@8.23.1", "", { "dependencies": { "@types/node": "*", "pg-protocol": "*", "pg-types": "^2.2.0" } }, "sha512-fKVHpikPdg4GKks3JuLEhvwSyvwzF23hnabPy6DD8ljVbC7+6J5dQzdv4arV6jqq57djnMgs1HKBxX4P8aBI3A=="], + "@types/prettier": ["@types/prettier@3.0.0", "", { "dependencies": { "prettier": "*" } }, "sha512-mFMBfMOz8QxhYVbuINtswBp9VL2b4Y0QqYHwqLz3YbgtfAcat2Dl6Y1o4e22S/OVE6Ebl9m7wWiMT2lSbAs1wA=="], "@types/react": ["@types/react@19.2.18", "", { "dependencies": { "csstype": "^3.2.2" } }, "sha512-AnzbBERsrLKtk2XSfTbYRLjQPdy116Sty4q+T+Bp3IC4l6jNBvreVPAHmpq9qhXQM7CXZPjLVmGMw9sy+hxQ3w=="], @@ -2887,9 +2895,9 @@ "dotenv": ["dotenv@16.6.1", "", {}, "sha512-uBq4egWHTcTt33a72vpSG0z3HnPuIl6NqYcTrKEg2azoEyl2hpW0zqlxysq2pK9HlDIHyHyakeYaYnSAwd8bow=="], - "drizzle-kit": ["drizzle-kit@0.31.10", "", { "dependencies": { "@drizzle-team/brocli": "^0.10.2", "@esbuild-kit/esm-loader": "^2.5.5", "esbuild": "^0.25.4", "tsx": "^4.21.0" }, "bin": { "drizzle-kit": "bin.cjs" } }, "sha512-7OZcmQUrdGI+DUNNsKBn1aW8qSoKuTH7d0mYgSP8bAzdFzKoovxEFnoGQp2dVs82EOJeYycqRtciopszwUf8bw=="], + "drizzle-kit": ["drizzle-kit@1.0.0-rc.5-5935859", "", { "dependencies": { "@drizzle-team/brocli": "0.12.1", "@js-temporal/polyfill": "^0.5.1", "esbuild": "^0.25.10", "get-tsconfig": "^4.13.6", "jiti": "^2.6.1" }, "bin": { "drizzle-kit": "bin.cjs" } }, "sha512-p//MvJbSeDFxa3pODv0ebNVJmk/5aAHHaCyQTtDGFlCYX4e7eY9rrSX/liBJ7098Ei9WUi9VT65JQkSFDuG1ng=="], - "drizzle-orm": ["drizzle-orm@0.45.2", "", { "peerDependencies": { "@aws-sdk/client-rds-data": ">=3", "@cloudflare/workers-types": ">=4", "@electric-sql/pglite": ">=0.2.0", "@libsql/client": ">=0.10.0", "@libsql/client-wasm": ">=0.10.0", "@neondatabase/serverless": ">=0.10.0", "@op-engineering/op-sqlite": ">=2", "@opentelemetry/api": "^1.4.1", "@planetscale/database": ">=1.13", "@prisma/client": "*", "@tidbcloud/serverless": "*", "@types/better-sqlite3": "*", "@types/pg": "*", "@types/sql.js": "*", "@upstash/redis": ">=1.34.7", "@vercel/postgres": ">=0.8.0", "@xata.io/client": "*", "better-sqlite3": ">=7", "bun-types": "*", "expo-sqlite": ">=14.0.0", "gel": ">=2", "knex": "*", "kysely": "*", "mysql2": ">=2", "pg": ">=8", "postgres": ">=3", "prisma": "*", "sql.js": ">=1", "sqlite3": ">=5" }, "optionalPeers": ["@aws-sdk/client-rds-data", "@cloudflare/workers-types", "@electric-sql/pglite", "@libsql/client", "@libsql/client-wasm", "@neondatabase/serverless", "@op-engineering/op-sqlite", "@opentelemetry/api", "@planetscale/database", "@prisma/client", "@tidbcloud/serverless", "@types/better-sqlite3", "@types/pg", "@types/sql.js", "@upstash/redis", "@vercel/postgres", "@xata.io/client", "better-sqlite3", "bun-types", "expo-sqlite", "gel", "knex", "kysely", "mysql2", "pg", "postgres", "prisma", "sql.js", "sqlite3"] }, "sha512-kY0BSaTNYWnoDMVoyY8uxmyHjpJW1geOmBMdSSicKo9CIIWkSxMIj2rkeSR51b8KAPB7m+qysjuHme5nKP+E5Q=="], + "drizzle-orm": ["drizzle-orm@1.0.0-rc.5-5935859", "", { "peerDependencies": { "@aws-sdk/client-rds-data": ">=3", "@cloudflare/workers-types": ">=4", "@drizzle-team/minipg": ">=0.3.2", "@effect/sql-d1": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-libsql": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-mysql2": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-pg": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-pglite": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-sqlite-bun": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-sqlite-do": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-sqlite-node": ">=4.0.0-beta.105 || >=4.0.0", "@effect/sql-sqlite-wasm": ">=4.0.0-beta.105 || >=4.0.0", "@electric-sql/pglite": ">=0.2.0", "@libsql/client": ">=0.10.0", "@libsql/client-wasm": ">=0.10.0", "@neondatabase/serverless": ">=0.10.0", "@op-engineering/op-sqlite": ">=17", "@opentelemetry/api": "^1.4.1", "@planetscale/database": ">=1.13", "@sinclair/typebox": ">=0.34.8", "@sqlitecloud/drivers": ">=1.0.653", "@tidbcloud/serverless": "*", "@tursodatabase/database": ">=0.7.1", "@tursodatabase/database-common": ">=0.7.1", "@tursodatabase/database-wasm": ">=0.7.1", "@tursodatabase/serverless": ">=1.4.0", "@tursodatabase/sync": ">=0.7.1", "@types/better-sqlite3": "*", "@types/mssql": "^9.1.4", "@types/pg": "*", "@types/sql.js": "*", "@upstash/redis": ">=1.34.7", "@vercel/postgres": ">=0.8.0", "@xata.io/client": "*", "arktype": ">=2.0.0", "better-sqlite3": ">=9.3.0", "bun-types": "*", "effect": ">=4.0.0-beta.105 || >=4.0.0", "expo-sqlite": ">=14.0.0", "mssql": "^11.0.1", "mysql2": ">=2", "pg": ">=8", "postgres": ">=3", "sql.js": ">=1", "sqlite3": ">=5", "typebox": ">=1.2.0", "valibot": ">=1.0.0-beta.7", "zod": "^3.25.0 || ^4.0.0" }, "optionalPeers": ["@aws-sdk/client-rds-data", "@cloudflare/workers-types", "@drizzle-team/minipg", "@effect/sql-d1", "@effect/sql-libsql", "@effect/sql-mysql2", "@effect/sql-pg", "@effect/sql-pglite", "@effect/sql-sqlite-bun", "@effect/sql-sqlite-do", "@effect/sql-sqlite-node", "@effect/sql-sqlite-wasm", "@electric-sql/pglite", "@libsql/client", "@libsql/client-wasm", "@neondatabase/serverless", "@op-engineering/op-sqlite", "@opentelemetry/api", "@planetscale/database", "@sinclair/typebox", "@sqlitecloud/drivers", "@tidbcloud/serverless", "@tursodatabase/database", "@tursodatabase/database-common", "@tursodatabase/database-wasm", "@tursodatabase/serverless", "@tursodatabase/sync", "@types/better-sqlite3", "@types/mssql", "@types/pg", "@types/sql.js", "@upstash/redis", "@vercel/postgres", "@xata.io/client", "arktype", "better-sqlite3", "bun-types", "effect", "expo-sqlite", "mssql", "mysql2", "pg", "postgres", "sql.js", "sqlite3", "typebox", "valibot", "zod"] }, "sha512-PkVjyxhamD7IOVfpDMn3BmV9afyvj3eeLvIPind3NmPv+cfv6/jh6GN0fHP0zzgrprGx/jGE4mkE0ttRFlzHwA=="], "dset": ["dset@3.1.4", "", {}, "sha512-2QF/g9/zTaPDc3BjNcVTGoBbXBgYfMTTceLaYcFJ/W9kggFUkhxD/hMEeuLKbugyef9SqAx8cpgwlIP/jinUTA=="], @@ -3275,6 +3283,8 @@ "js-yaml": ["js-yaml@4.3.1", "", { "dependencies": { "argparse": "^2.0.1" }, "bin": { "js-yaml": "bin/js-yaml.js" } }, "sha512-CY6crGq313MX8GkwvB7tzgp99vjQxY1++5y10/BKN/GUfHqWaOGQMNZkBvqSzsZKWk/ijwHlWzzkLulsGHhjWQ=="], + "jsbi": ["jsbi@4.3.2", "", {}, "sha512-9fqMSQbhJykSeii05nxKl4m6Eqn2P6rOlYiS+C5Dr/HPIU/7yZxu5qzbs40tgaFORiw2Amd0mirjxatXYMkIew=="], + "jsdom": ["jsdom@29.1.1", "", { "dependencies": { "@asamuzakjp/css-color": "^5.1.11", "@asamuzakjp/dom-selector": "^7.1.1", "@bramus/specificity": "^2.4.2", "@csstools/css-syntax-patches-for-csstree": "^1.1.3", "@exodus/bytes": "^1.15.0", "css-tree": "^3.2.1", "data-urls": "^7.0.0", "decimal.js": "^10.6.0", "html-encoding-sniffer": "^6.0.0", "is-potential-custom-element-name": "^1.0.1", "lru-cache": "^11.3.5", "parse5": "^8.0.1", "saxes": "^6.0.0", "symbol-tree": "^3.2.4", "tough-cookie": "^6.0.1", "undici": "^7.25.0", "w3c-xmlserializer": "^5.0.0", "webidl-conversions": "^8.0.1", "whatwg-mimetype": "^5.0.0", "whatwg-url": "^16.0.1", "xml-name-validator": "^5.0.0" }, "peerDependencies": { "canvas": "^3.0.0" }, "optionalPeers": ["canvas"] }, "sha512-ECi4Fi2f7BdJtUKTflYRTiaMxIB0O6zfR1fX0GXpUrf6flp8QIYn1UT20YQqdSOfk2dfkCwS8LAFoJDEppNK5Q=="], "jsesc": ["jsesc@3.1.0", "", { "bin": { "jsesc": "bin/jsesc" } }, "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA=="], @@ -3597,6 +3607,8 @@ "object-hash": ["object-hash@2.2.0", "", {}, "sha512-gScRMn0bS5fH+IuwyIFgnh9zBdo4DV+6GhygmWM9HyNJSgS0hScp1f5vjtm7oIIOiT9trXrShAkLFSc2IqKNgw=="], + "obuf": ["obuf@1.1.2", "", {}, "sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg=="], + "obug": ["obug@2.1.4", "", {}, "sha512-4a+OsYv9UktOJKE+l1A4OufDgdRF9PifWj+tJnHURo/P+WOxpG4GzUFL9qCalmWauao6ogiG+QvnCovwPoyAWA=="], "ofetch": ["ofetch@1.5.1", "", { "dependencies": { "destr": "^2.0.5", "node-fetch-native": "^1.6.7", "ufo": "^1.6.1" } }, "sha512-2W4oUZlVaqAPAil6FUg/difl6YhqhUR7x2eZY4bQCko22UXg3hptq9KLQdqFClV+Wu85UX7hNtdGTngi/1BxcA=="], @@ -3667,6 +3679,26 @@ "perfect-debounce": ["perfect-debounce@2.1.0", "", {}, "sha512-LjgdTytVFXeUgtHZr9WYViYSM/g8MkcTPYDlPa3cDqMirHjKiSZPYd6DoL7pK8AJQr+uWkQvCjHNdiMqsrJs+g=="], + "pg": ["pg@8.23.0", "", { "dependencies": { "pg-connection-string": "^2.14.0", "pg-pool": "^3.14.0", "pg-protocol": "^1.16.0", "pg-types": "2.2.0", "pgpass": "1.0.5" }, "optionalDependencies": { "pg-cloudflare": "^1.4.0" }, "peerDependencies": { "pg-native": ">=3.0.1" }, "optionalPeers": ["pg-native"] }, "sha512-Ip2EQCngowJLGOfCwkFhPXU7/ljlhn6Rxlmy4XYfL2Y+vyRM59+8uR2xqRWKdYmbXmxCFOAmKxBuSUCdF34qLg=="], + + "pg-cloudflare": ["pg-cloudflare@1.4.0", "", {}, "sha512-Vo7z/6rrQYxpNRylp4Tlob2elzbh+N/MOQbxFVWCxS7oEx6jF53GTJFxK2WWpKuBRkmiin4Mt+xofFDjx09R0A=="], + + "pg-connection-string": ["pg-connection-string@2.14.0", "", {}, "sha512-XwWDGcLRGCXAR8F/AM5bG7Q+A3Wm2s6QeEjlOKZLlH3UYcguiqCWKyWXVag5TLTIjR7oOJUY8kcADaZgWPyLeg=="], + + "pg-cursor": ["pg-cursor@2.22.0", "", { "peerDependencies": { "pg": "^8" } }, "sha512-knzXLKqarTjOvb3qDSW0JiGsazmxwEKXrqHfWRte7XUsOYccQRafn3BLnQobWwInkzFJSyOej8y8cQRh2z3kGw=="], + + "pg-int8": ["pg-int8@1.0.1", "", {}, "sha512-WCtabS6t3c8SkpDBUlb1kjOs7l66xsGdKpIPZsg4wR+B3+u9UAum2odSsF9tnvxg80h4ZxLWMy4pRjOsFIqQpw=="], + + "pg-numeric": ["pg-numeric@1.0.2", "", {}, "sha512-BM/Thnrw5jm2kKLE5uJkXqqExRUY/toLHda65XgFTBTFYZyopbKjBe29Ii3RbkvlsMoFwD+tHeGaCjjv0gHlyw=="], + + "pg-pool": ["pg-pool@3.14.0", "", { "peerDependencies": { "pg": ">=8.0" } }, "sha512-gKtPkFdQPU3DksooVLi9LsjZxrsBUZIpa+7aVx+LV5pNh0KzP4Zleud2po+ConrxbuXGBJ6Hfer6hdgpIBpBaw=="], + + "pg-protocol": ["pg-protocol@1.16.0", "", {}, "sha512-sILXutLVjCLjcDuOmvhX5e2Z4cS5qG/6Bu3VkpFwdf/633ElGLpEh9bgmuI5I4sqKqkifQiGyiCcx1HdtrK7tg=="], + + "pg-types": ["pg-types@2.2.0", "", { "dependencies": { "pg-int8": "1.0.1", "postgres-array": "~2.0.0", "postgres-bytea": "~1.0.0", "postgres-date": "~1.0.4", "postgres-interval": "^1.1.0" } }, "sha512-qTAAlrEsl8s4OiEQY69wDvcMIdQN6wdz5ojQiOy6YRMuynxenON0O5oCpJI6lshc6scgAY8qvJ2On/p+CXY0GA=="], + + "pgpass": ["pgpass@1.0.5", "", { "dependencies": { "split2": "^4.1.0" } }, "sha512-FdW9r/jQZhSeohs1Z3sI1yxFQNFvMcnmfuj4WBMUTxOrAyLMaTcE1aAMBiTlbMNaXvBCQuVi0R7hd8udDSP7ug=="], + "piccolore": ["piccolore@0.1.3", "", {}, "sha512-o8bTeDWjE086iwKrROaDf31K0qC/BENdm15/uH9usSC/uZjJOKb2YGiVHfLY4GhwsERiPI1jmwI2XrA7ACOxVw=="], "picocolors": ["picocolors@1.1.1", "", {}, "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA=="], @@ -3703,6 +3735,16 @@ "postgres": ["postgres@3.4.9", "", {}, "sha512-GD3qdB0x1z9xgFI6cdRD6xu2Sp2WCOEoe3mtnyB5Ee0XrrL5Pe+e4CCnJrRMnL1zYtRDZmQQVbvOttLnKDLnaw=="], + "postgres-array": ["postgres-array@2.0.0", "", {}, "sha512-VpZrUqU5A69eQyW2c5CA1jtLecCsN2U/bD6VilrFDWq5+5UIEVO7nazS3TEcHf1zuPYO/sqGvUvW62g86RXZuA=="], + + "postgres-bytea": ["postgres-bytea@1.0.1", "", {}, "sha512-5+5HqXnsZPE65IJZSMkZtURARZelel2oXUEO8rH83VS/hxH5vv1uHquPg5wZs8yMAfdv971IU+kcPUczi7NVBQ=="], + + "postgres-date": ["postgres-date@1.0.7", "", {}, "sha512-suDmjLVQg78nMK2UZ454hAG+OAW+HQPZ6n++TNDUX+L0+uUlLywnoxJKDou51Zm+zTCjrCl0Nq6J9C5hP9vK/Q=="], + + "postgres-interval": ["postgres-interval@1.2.0", "", { "dependencies": { "xtend": "^4.0.0" } }, "sha512-9ZhXKM/rw350N1ovuWHbGxnGh/SNJ4cnxHiM0rxE4VN41wsg8P8zWn9hv/buK00RP4WvlOyr/RBDiptyxVbkZQ=="], + + "postgres-range": ["postgres-range@1.1.4", "", {}, "sha512-i/hbxIE9803Alj/6ytL7UHQxRvZkI9O4Sy+J3HGc4F4oo/2eQAjTSNJ0bfxyse3bH0nuVesCk+3IRLaMtG3H6w=="], + "powershell-utils": ["powershell-utils@0.2.0", "", {}, "sha512-ZlsFlG7MtSFCoc5xreOvBAozCJ6Pf06opgJjh9ONEv418xpZSAzNjstD36C6+JwOnfSqOW/9uDkqKjezTdxZhw=="], "prettier": ["prettier@3.9.6", "", { "bin": { "prettier": "bin/prettier.cjs" } }, "sha512-OpN0zzVdiaiAhxpuuj5efpIS4sY9j7bY6uR5mnj5yPzGkdkjNKSJeUThPb60Jw29QuAZgA4o+/iB49kFiaBX6g=="], @@ -3963,6 +4005,8 @@ "split-on-first": ["split-on-first@3.0.0", "", {}, "sha512-qxQJTx2ryR0Dw0ITYyekNQWpz6f8dGd7vffGNflQQ3Iqj9NJ6qiZ7ELpZsJ/QBhIVAiDfXdag3+Gp8RvWa62AA=="], + "split2": ["split2@4.2.0", "", {}, "sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg=="], + "sprintf-js": ["sprintf-js@1.0.3", "", {}, "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g=="], "sqlite-wasm-kysely": ["sqlite-wasm-kysely@0.3.0", "", { "dependencies": { "@sqlite.org/sqlite-wasm": "^3.48.0-build2" }, "peerDependencies": { "kysely": "*" } }, "sha512-TzjBNv7KwRw6E3pdKdlRyZiTmUIE0UttT/Sl56MVwVARl/u5gp978KepazCJZewFUnlWHz9i3NQd4kOtP/Afdg=="], @@ -4105,8 +4149,6 @@ "tslib": ["tslib@2.8.1", "", {}, "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w=="], - "tsx": ["tsx@4.23.1", "", { "dependencies": { "esbuild": "~0.28.0" }, "optionalDependencies": { "fsevents": "~2.3.3" }, "bin": { "tsx": "dist/cli.mjs" } }, "sha512-GQHnkIfxyx1wYCOS/wonik5MVRZU9hi1TEZmzGZSCJB1y9YgoZ8H6itNE/u4suE+yLmOzuE4E5S4TZ/ZX2wcWQ=="], - "turbo": ["turbo@2.10.8", "", { "optionalDependencies": { "@turbo/darwin-64": "2.10.8", "@turbo/darwin-arm64": "2.10.8", "@turbo/linux-64": "2.10.8", "@turbo/linux-arm64": "2.10.8", "@turbo/windows-64": "2.10.8", "@turbo/windows-arm64": "2.10.8" }, "bin": { "turbo": "bin/turbo" } }, "sha512-9+8YX5QOkGXzZxcIykTHgaooRHGMWO+jfdyRK0o+rN0U7hBIig2MrJ8r/aNzIPDPhdA73SGb0O+tIztaModTMg=="], "turbo-stream": ["turbo-stream@3.2.1", "", {}, "sha512-BaX0eWz3IrypOVDFqPv3VGD6uZZW8y3oFAOJqZQ+oopmOyQ8/xNm7IMwAJFvxax2DBa8zSk+/AeqA6D6b1PXGg=="], @@ -4283,6 +4325,8 @@ "xmlchars": ["xmlchars@2.2.0", "", {}, "sha512-JZnDKK8B0RCDw84FNdDAIpZK+JuJw+s7Lz8nksI7SIuU3UXJJslUthsi+uWBUYOwPFwW7W7PRLRfUKpxjtjFCw=="], + "xtend": ["xtend@4.0.2", "", {}, "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ=="], + "xxhash-wasm": ["xxhash-wasm@1.1.0", "", {}, "sha512-147y/6YNh+tlp6nd/2pWq38i9h6mz/EuQ6njIrmW8D1BS5nCqs0P6DG+m6zTGnNz5I+uhZ0SHxBs9BsPrwcKDA=="], "y18n": ["y18n@5.0.8", "", {}, "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA=="], @@ -4385,12 +4429,12 @@ "@effect/sql-d1/@cloudflare/workers-types": ["@cloudflare/workers-types@5.20260823.1", "", {}, "sha512-HdBVDR/gecQ5QwB+DZ9kB5yjNZLS85fe8bMB2K/k0xmCvaoMlAFrQQGLaCBYR00j+i9aTkQzwfrPInVZwlMPwQ=="], + "@effect/sql-pg/pg-types": ["pg-types@4.1.0", "", { "dependencies": { "pg-int8": "1.0.1", "pg-numeric": "1.0.2", "postgres-array": "~3.0.1", "postgres-bytea": "~3.0.0", "postgres-date": "~2.1.0", "postgres-interval": "^3.0.0", "postgres-range": "^1.1.1" } }, "sha512-o2XFanIMy/3+mThw69O8d4n1E5zsLhdO+OPqswezu7Z5ekP4hYDqlDjlmOpYMbzY2Br0ufCwJLdDIXeNVwcWFg=="], + "@electric-sql/pglite-socket/@electric-sql/pglite": ["@electric-sql/pglite@0.3.15", "", {}, "sha512-Cj++n1Mekf9ETfdc16TlDi+cDDQF0W7EcbyRHYOAeZdsAe8M/FJg18itDTSwyHfar2WIezawM9o0EKaRGVKygQ=="], "@electric-sql/pglite-tools/@electric-sql/pglite": ["@electric-sql/pglite@0.3.15", "", {}, "sha512-Cj++n1Mekf9ETfdc16TlDi+cDDQF0W7EcbyRHYOAeZdsAe8M/FJg18itDTSwyHfar2WIezawM9o0EKaRGVKygQ=="], - "@esbuild-kit/core-utils/esbuild": ["esbuild@0.18.20", "", { "optionalDependencies": { "@esbuild/android-arm": "0.18.20", "@esbuild/android-arm64": "0.18.20", "@esbuild/android-x64": "0.18.20", "@esbuild/darwin-arm64": "0.18.20", "@esbuild/darwin-x64": "0.18.20", "@esbuild/freebsd-arm64": "0.18.20", "@esbuild/freebsd-x64": "0.18.20", "@esbuild/linux-arm": "0.18.20", "@esbuild/linux-arm64": "0.18.20", "@esbuild/linux-ia32": "0.18.20", "@esbuild/linux-loong64": "0.18.20", "@esbuild/linux-mips64el": "0.18.20", "@esbuild/linux-ppc64": "0.18.20", "@esbuild/linux-riscv64": "0.18.20", "@esbuild/linux-s390x": "0.18.20", "@esbuild/linux-x64": "0.18.20", "@esbuild/netbsd-x64": "0.18.20", "@esbuild/openbsd-x64": "0.18.20", "@esbuild/sunos-x64": "0.18.20", "@esbuild/win32-arm64": "0.18.20", "@esbuild/win32-ia32": "0.18.20", "@esbuild/win32-x64": "0.18.20" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-ceqxoedUrcayh7Y7ZX6NdbbDzGROiyVBgC4PriJThBKSVPWnnFHZAkfI1lJT8QFkOwH4qOS2SJkS4wvpGl8BpA=="], - "@img/sharp-wasm32/@emnapi/runtime": ["@emnapi/runtime@1.11.3", "", { "dependencies": { "tslib": "^2.4.0" } }, "sha512-Xz4Tpyki7XyrpbUK1jR1AhdAdaXyhhY4lZ3neLodmhpuWfy2PAQN5B46sAiU4liOXGLkHypn/qU+jvfWSCYYLA=="], "@inlang/paraglide-js/commander": ["commander@11.1.0", "", {}, "sha512-yPVavfyCcRhmorC7rWlkHn15b4wDVgVmBA7kV4QVBsF7kv/9TKJAbAXVTxvTnwP8HHKjRCJDClKbciiYS7p0DQ=="], @@ -4511,6 +4555,8 @@ "@types/d3-sankey/@types/d3-shape": ["@types/d3-shape@1.3.12", "", { "dependencies": { "@types/d3-path": "^1" } }, "sha512-8oMzcd4+poSLGgV0R1Q1rOlx/xdmozS4Xab7np0eamFFUYq71AU9pOCJEFnkXW2aI/oXdVYJzw6pssbSut7Z9Q=="], + "@types/pg/@types/node": ["@types/node@26.4.1", "", { "dependencies": { "undici-types": "~8.3.0" } }, "sha512-k97ENvZWtvA6yqz5/FS6a7duDgOPEeOQOc2iKS/nY6mX6qJUKtLnWzQS+Xj6tXweyj6ZcTAK2Qecetnvi9nCLA=="], + "@types/sax/@types/node": ["@types/node@24.13.3", "", { "dependencies": { "undici-types": "~7.18.0" } }, "sha512-Dh8vAsV36ig5wa9OX4pXvMc9D3Veibfw2wix0CUwYODLD8nkj9UsLjASr49nPg+2eKzxhBV+v7L8pXvT4e639Q=="], "@unhead/bundler/magic-string": ["magic-string@1.1.0", "", { "dependencies": { "@jridgewell/sourcemap-codec": "^1.5.5" } }, "sha512-kS3VHe0nEPST2saQV4Rbkchcd3UBRkVTQHo1D3h/ZTwFDhai/mfKkmtPAtD129EOI7K3HlHIsFOt0WrI2/oU9g=="], @@ -4743,8 +4789,6 @@ "tsdown/rolldown": ["rolldown@1.2.1", "", { "dependencies": { "@oxc-project/types": "=0.142.0", "@rolldown/pluginutils": "^1.0.0" }, "optionalDependencies": { "@rolldown/binding-android-arm64": "1.2.1", "@rolldown/binding-darwin-arm64": "1.2.1", "@rolldown/binding-darwin-x64": "1.2.1", "@rolldown/binding-freebsd-x64": "1.2.1", "@rolldown/binding-linux-arm-gnueabihf": "1.2.1", "@rolldown/binding-linux-arm64-gnu": "1.2.1", "@rolldown/binding-linux-arm64-musl": "1.2.1", "@rolldown/binding-linux-ppc64-gnu": "1.2.1", "@rolldown/binding-linux-s390x-gnu": "1.2.1", "@rolldown/binding-linux-x64-gnu": "1.2.1", "@rolldown/binding-linux-x64-musl": "1.2.1", "@rolldown/binding-openharmony-arm64": "1.2.1", "@rolldown/binding-wasm32-wasi": "1.2.1", "@rolldown/binding-win32-arm64-msvc": "1.2.1", "@rolldown/binding-win32-x64-msvc": "1.2.1" }, "bin": { "rolldown": "./bin/cli.mjs" } }, "sha512-4FKJhg8d3OiyQOA6Q1Q0hoFFpW9/OoX+VsHzpECsdsIZoOArrAK90gl59YK/Z+gnDel45bgJZK03ozH/9bCqEw=="], - "tsx/esbuild": ["esbuild@0.28.1", "", { "optionalDependencies": { "@esbuild/aix-ppc64": "0.28.1", "@esbuild/android-arm": "0.28.1", "@esbuild/android-arm64": "0.28.1", "@esbuild/android-x64": "0.28.1", "@esbuild/darwin-arm64": "0.28.1", "@esbuild/darwin-x64": "0.28.1", "@esbuild/freebsd-arm64": "0.28.1", "@esbuild/freebsd-x64": "0.28.1", "@esbuild/linux-arm": "0.28.1", "@esbuild/linux-arm64": "0.28.1", "@esbuild/linux-ia32": "0.28.1", "@esbuild/linux-loong64": "0.28.1", "@esbuild/linux-mips64el": "0.28.1", "@esbuild/linux-ppc64": "0.28.1", "@esbuild/linux-riscv64": "0.28.1", "@esbuild/linux-s390x": "0.28.1", "@esbuild/linux-x64": "0.28.1", "@esbuild/netbsd-arm64": "0.28.1", "@esbuild/netbsd-x64": "0.28.1", "@esbuild/openbsd-arm64": "0.28.1", "@esbuild/openbsd-x64": "0.28.1", "@esbuild/openharmony-arm64": "0.28.1", "@esbuild/sunos-x64": "0.28.1", "@esbuild/win32-arm64": "0.28.1", "@esbuild/win32-ia32": "0.28.1", "@esbuild/win32-x64": "0.28.1" }, "bin": { "esbuild": "bin/esbuild" } }, "sha512-HrJrvZv5ayxBzPfwphOoNzkzOIIlifzk0KJrGK2c8R4+LKpMtpYLQeUdjnwjWv/LZlkH2laZk+4w78pi99D4Vw=="], - "unhead/unplugin": ["unplugin@3.3.0", "", { "dependencies": { "@jridgewell/remapping": "^2.3.5", "picomatch": "^4.0.4", "webpack-virtual-modules": "^0.6.2" }, "peerDependencies": { "@farmfe/core": "*", "@rspack/core": "*", "bun-types-no-globals": "*", "esbuild": "*", "rolldown": "*", "rollup": "*", "unloader": "*", "vite": "*", "webpack": "*" }, "optionalPeers": ["@farmfe/core", "@rspack/core", "bun-types-no-globals", "esbuild", "rolldown", "rollup", "unloader", "vite", "webpack"] }, "sha512-qa66K+crbfyE6JK10GjvbJeRrOsuC/JpbnHctfyp/i4oBTxWOzJfRZyDiOk1PtErMFRu8JhsU/wPvOdBNWe5Rg=="], "unimport/escape-string-regexp": ["escape-string-regexp@5.0.0", "", {}, "sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw=="], @@ -4853,49 +4897,13 @@ "@clerk/themes/@clerk/shared/std-env": ["std-env@3.10.0", "", {}, "sha512-5GS12FdOZNliM5mAOxFRg7Ir0pWz8MdpYm6AY6VPkGpbA7ZzmbzNcBJQ0GPvvyWgcY7QAhCgf9Uy89I03faLkg=="], - "@esbuild-kit/core-utils/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.18.20", "", { "os": "android", "cpu": "arm" }, "sha512-fyi7TDI/ijKKNZTUJAQqiG5T7YjJXgnzkURqmGj13C6dCqckZBLdl4h7bkhHt/t0WP+zO9/zwroDvANaOqO5Sw=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.18.20", "", { "os": "android", "cpu": "arm64" }, "sha512-Nz4rJcchGDtENV0eMKUNa6L12zz2zBDXuhj/Vjh18zGqB44Bi7MBMSXjgunJgjRhCmKOjnPuZp4Mb6OKqtMHLQ=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.18.20", "", { "os": "android", "cpu": "x64" }, "sha512-8GDdlePJA8D6zlZYJV/jnrRAi6rOiNaCC/JclcXpB+KIuvfBN4owLtgzY2bsxnx666XjJx2kDPUmnTtR8qKQUg=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.18.20", "", { "os": "darwin", "cpu": "arm64" }, "sha512-bxRHW5kHU38zS2lPTPOyuyTm+S+eobPUnTNkdJEfAddYgEcll4xkT8DB9d2008DtTbl7uJag2HuE5NZAZgnNEA=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.18.20", "", { "os": "darwin", "cpu": "x64" }, "sha512-pc5gxlMDxzm513qPGbCbDukOdsGtKhfxD1zJKXjCCcU7ju50O7MeAZ8c4krSJcOIJGFR+qx21yMMVYwiQvyTyQ=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.18.20", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-yqDQHy4QHevpMAaxhhIwYPMv1NECwOvIpGCZkECn8w2WFHXjEwrBn3CeNIYsibZ/iZEUemj++M26W3cNR5h+Tw=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.18.20", "", { "os": "freebsd", "cpu": "x64" }, "sha512-tgWRPPuQsd3RmBZwarGVHZQvtzfEBOreNuxEMKFcd5DaDn2PbBxfwLcj4+aenoh7ctXcbXmOQIn8HI6mCSw5MQ=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.18.20", "", { "os": "linux", "cpu": "arm" }, "sha512-/5bHkMWnq1EgKr1V+Ybz3s1hWXok7mDFUMQ4cG10AfW3wL02PSZi5kFpYKrptDsgb2WAJIvRcDm+qIvXf/apvg=="], + "@effect/sql-pg/pg-types/postgres-array": ["postgres-array@3.0.4", "", {}, "sha512-nAUSGfSDGOaOAEGwqsRY27GPOea7CNipJPOA7lPbdEpx5Kg3qzdP0AaWC5MlhTWV9s4hFX39nomVZ+C4tnGOJQ=="], - "@esbuild-kit/core-utils/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.18.20", "", { "os": "linux", "cpu": "arm64" }, "sha512-2YbscF+UL7SQAVIpnWvYwM+3LskyDmPhe31pE7/aoTMFKKzIc9lLbyGUpmmb8a8AixOL61sQ/mFh3jEjHYFvdA=="], + "@effect/sql-pg/pg-types/postgres-bytea": ["postgres-bytea@3.0.0", "", { "dependencies": { "obuf": "~1.1.2" } }, "sha512-CNd4jim9RFPkObHSjVHlVrxoVQXz7quwNFpz7RY1okNNme49+sVyiTvTRobiLV548Hx/hb1BG+iE7h9493WzFw=="], - "@esbuild-kit/core-utils/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.18.20", "", { "os": "linux", "cpu": "ia32" }, "sha512-P4etWwq6IsReT0E1KHU40bOnzMHoH73aXp96Fs8TIT6z9Hu8G6+0SHSw9i2isWrD2nbx2qo5yUqACgdfVGx7TA=="], + "@effect/sql-pg/pg-types/postgres-date": ["postgres-date@2.1.0", "", {}, "sha512-K7Juri8gtgXVcDfZttFKVmhglp7epKb1K4pgrkLxehjqkrgPhfG6OO8LHLkfaqkbpjNRnra018XwAr1yQFWGcA=="], - "@esbuild-kit/core-utils/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.18.20", "", { "os": "linux", "cpu": "none" }, "sha512-nXW8nqBTrOpDLPgPY9uV+/1DjxoQ7DoB2N8eocyq8I9XuqJ7BiAMDMf9n1xZM9TgW0J8zrquIb/A7s3BJv7rjg=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.18.20", "", { "os": "linux", "cpu": "none" }, "sha512-d5NeaXZcHp8PzYy5VnXV3VSd2D328Zb+9dEq5HE6bw6+N86JVPExrA6O68OPwobntbNJ0pzCpUFZTo3w0GyetQ=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.18.20", "", { "os": "linux", "cpu": "ppc64" }, "sha512-WHPyeScRNcmANnLQkq6AfyXRFr5D6N2sKgkFo2FqguP44Nw2eyDlbTdZwd9GYk98DZG9QItIiTlFLHJHjxP3FA=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.18.20", "", { "os": "linux", "cpu": "none" }, "sha512-WSxo6h5ecI5XH34KC7w5veNnKkju3zBRLEQNY7mv5mtBmrP/MjNBCAlsM2u5hDBlS3NGcTQpoBvRzqBcRtpq1A=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.18.20", "", { "os": "linux", "cpu": "s390x" }, "sha512-+8231GMs3mAEth6Ja1iK0a1sQ3ohfcpzpRLH8uuc5/KVDFneH6jtAJLFGafpzpMRO6DzJ6AvXKze9LfFMrIHVQ=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.18.20", "", { "os": "linux", "cpu": "x64" }, "sha512-UYqiqemphJcNsFEskc73jQ7B9jgwjWrSayxawS6UVFZGWrAAtkzjxSqnoclCXxWtfwLdzU+vTpcNYhpn43uP1w=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.18.20", "", { "os": "none", "cpu": "x64" }, "sha512-iO1c++VP6xUBUmltHZoMtCUdPlnPGdBom6IrO4gyKPFFVBKioIImVooR5I83nTew5UOYrk3gIJhbZh8X44y06A=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.18.20", "", { "os": "openbsd", "cpu": "x64" }, "sha512-e5e4YSsuQfX4cxcygw/UCPIEP6wbIL+se3sxPdCiMbFLBWu0eiZOJ7WoD+ptCLrmjZBK1Wk7I6D/I3NglUGOxg=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.18.20", "", { "os": "sunos", "cpu": "x64" }, "sha512-kDbFRFp0YpTQVVrqUd5FTYmWo45zGaXe0X8E1G/LKFC0v8x0vWrhOWSLITcCn63lmZIxfOMXtCfti/RxN/0wnQ=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.18.20", "", { "os": "win32", "cpu": "arm64" }, "sha512-ddYFR6ItYgoaq4v4JmQQaAI5s7npztfV4Ag6NrhiaW0RrnOXqBkgwZLofVTlq1daVTQNhtI5oieTvkRPfZrePg=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.18.20", "", { "os": "win32", "cpu": "ia32" }, "sha512-Wv7QBi3ID/rROT08SABTS7eV4hX26sVduqDOTe1MvGMjNd3EjOz4b7zeexIR62GTIEKrfJXKL9LFxTYgkyeu7g=="], - - "@esbuild-kit/core-utils/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.18.20", "", { "os": "win32", "cpu": "x64" }, "sha512-kTdfRcSiDfQca/y9QIkng02avJ+NCaQvrMejlsB3RRv5sE9rRoeBPISaZpKxHELzRxZyLvNts1P27W3wV+8geQ=="], + "@effect/sql-pg/pg-types/postgres-interval": ["postgres-interval@3.0.0", "", {}, "sha512-BSNDnbyZCXSxgA+1f5UU2GmwhoI0aU5yMxRGO8CdFEcY2BQF9xm/7MqKnYoM1nJDk8nONNWDk9WeSmePFhQdlw=="], "@inquirer/core/wrap-ansi/ansi-styles": ["ansi-styles@4.3.0", "", { "dependencies": { "color-convert": "^2.0.1" } }, "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg=="], @@ -5035,6 +5043,8 @@ "@types/d3-sankey/@types/d3-shape/@types/d3-path": ["@types/d3-path@1.0.11", "", {}, "sha512-4pQMp8ldf7UaB/gR8Fvvy69psNHkTpD/pVw3vmEi8iZAB9EPMBruB1JvHO4BIq9QkUUd2lV1F5YXpMNj7JPBpw=="], + "@types/pg/@types/node/undici-types": ["undici-types@8.3.0", "", {}, "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ=="], + "@types/sax/@types/node/undici-types": ["undici-types@7.18.2", "", {}, "sha512-AsuCzffGHJybSaRrmr5eHr81mwJU3kjw6M+uprWvCXiNeN9SOGwQ3Jn8jb8m3Z6izVgknn1R0FTCEAP2QrLY/w=="], "@unhead/bundler/unplugin/picomatch": ["picomatch@4.0.5", "", {}, "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A=="], @@ -5363,56 +5373,6 @@ "tsdown/rolldown/@rolldown/binding-win32-x64-msvc": ["@rolldown/binding-win32-x64-msvc@1.2.1", "", { "os": "win32", "cpu": "x64" }, "sha512-Z4eCmn5QJ/5+azF9knpLWKfVd9aidn0mAe9TpJgvBLId9Ax3t0+JVxBmT25Bv7NBbVW1TZyKjQjQReouMeH5UQ=="], - "tsx/esbuild/@esbuild/aix-ppc64": ["@esbuild/aix-ppc64@0.28.1", "", { "os": "aix", "cpu": "ppc64" }, "sha512-Svl7tq8k/08+p6CXPpRjQ1fKX+1odH/BQbb48fV6fj3CWHhsoIOoY87w1oHXm0qEpkIK3ZfVgp0hed3XBXzXMQ=="], - - "tsx/esbuild/@esbuild/android-arm": ["@esbuild/android-arm@0.28.1", "", { "os": "android", "cpu": "arm" }, "sha512-0k2F129Xdio1TdJfzJ8sy1Q47vUD2NnwdhiAf7drUN1EBTfPf4hsFCtmMgu/6m8JSzsBrlmVjudMBQqOfG8usQ=="], - - "tsx/esbuild/@esbuild/android-arm64": ["@esbuild/android-arm64@0.28.1", "", { "os": "android", "cpu": "arm64" }, "sha512-34EGEbCIAgosYz6goLcopX6Mo7NyGv9tfwEM2/7Ce2VcVRk568iSvniGWcUXIy7wEDR1wzolcxcriFVrWYcwBg=="], - - "tsx/esbuild/@esbuild/android-x64": ["@esbuild/android-x64@0.28.1", "", { "os": "android", "cpu": "x64" }, "sha512-dbwY7ltSMDWsRatcRpCnES4F+im88OCUgGZjy52shC7GqHRE/cYlxNbB4Z4UpJswpcc4Qxd2oE/ufM0p61IKng=="], - - "tsx/esbuild/@esbuild/darwin-arm64": ["@esbuild/darwin-arm64@0.28.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-TZbWkQY7kvTAXbXUT7uVACR5cMHsDiSz9z7ZKAX/RTq/WJEk3QyRr0wZpNhBDX+/0CtdqUIJlOiodQcta6tY3Q=="], - - "tsx/esbuild/@esbuild/darwin-x64": ["@esbuild/darwin-x64@0.28.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-zfdzgK9ACBNZLI/CyHTOx81SyNbM6YXn7rxSgX97VjyiPl9W1i4Ka4fgKECEoFCKGpvBj5qArWIGgQjOwkgskQ=="], - - "tsx/esbuild/@esbuild/freebsd-arm64": ["@esbuild/freebsd-arm64@0.28.1", "", { "os": "freebsd", "cpu": "arm64" }, "sha512-wG2EA8ENdEI0qhkSZMjfqrdY+ziCYCPMmtZjjIwOmXFjmyzEHn+UUxk5of+SYsjtfs3VpnlC7QLzSI5hY/rOAw=="], - - "tsx/esbuild/@esbuild/freebsd-x64": ["@esbuild/freebsd-x64@0.28.1", "", { "os": "freebsd", "cpu": "x64" }, "sha512-i7dZ9vQgnvSCzi/rYCXNgtF/U+eKZNJBzu3eTQbRgHnM7tNSizLOkRFAl3qzVc/Op/u5YkHHa4pf/3DOYHthLQ=="], - - "tsx/esbuild/@esbuild/linux-arm": ["@esbuild/linux-arm@0.28.1", "", { "os": "linux", "cpu": "arm" }, "sha512-qVXBOHQS+d5Y722GwJzJUtOLlX7km3CraOaGormF1pDtPd2C/l1SHRPgjLunLGe51Sh5YYWKMFDyV4SxgMQYTQ=="], - - "tsx/esbuild/@esbuild/linux-arm64": ["@esbuild/linux-arm64@0.28.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-yHs+0uc8+nvEAfAfxrWQKK5peSNzBc4PegcMO0EJ2hT71uA7vB8Ihg2e77R2P7SG5uYjPbHlLLmve4LLLRCf0g=="], - - "tsx/esbuild/@esbuild/linux-ia32": ["@esbuild/linux-ia32@0.28.1", "", { "os": "linux", "cpu": "ia32" }, "sha512-d1z4ZuP0ajrfz/FhGT4vv278rX8KnPPJx8i5+AtK7TYbx9Le9F1hyzurZpkEyjkGa9dUGhQow4C1NmeGvqxN2w=="], - - "tsx/esbuild/@esbuild/linux-loong64": ["@esbuild/linux-loong64@0.28.1", "", { "os": "linux", "cpu": "none" }, "sha512-M5sRjUVZrkm1OAPR3dlOYzNmN+loZKGVi1VUQGrwuqLcbR6qeAz+famMhjASeH3YVKvZz+zT1jlh/keC3Rj/lg=="], - - "tsx/esbuild/@esbuild/linux-mips64el": ["@esbuild/linux-mips64el@0.28.1", "", { "os": "linux", "cpu": "none" }, "sha512-mRObBZeHh2OxcBFPWE/FjylkRgZdYuiTR3vaTozquCGOH14iP9oN4x4Ge81CoIDYQrXmIxpFumJBu5MtZpnQJQ=="], - - "tsx/esbuild/@esbuild/linux-ppc64": ["@esbuild/linux-ppc64@0.28.1", "", { "os": "linux", "cpu": "ppc64" }, "sha512-slScBsMAb3GFDcdrCgLwZtPYRoH2H/youv10QiZyRjmsP48fznoveWytSgCI/R0ZcUgpc0ZhIUEx6LHts8yrfQ=="], - - "tsx/esbuild/@esbuild/linux-riscv64": ["@esbuild/linux-riscv64@0.28.1", "", { "os": "linux", "cpu": "none" }, "sha512-kw0owk1o0GFETUJyW0jc0G4Yzs0BHZn0JDZ8JRT088vjJYX777BAs1fDGxAC+q831qOs2DTC96mNsG2opdfyyQ=="], - - "tsx/esbuild/@esbuild/linux-s390x": ["@esbuild/linux-s390x@0.28.1", "", { "os": "linux", "cpu": "s390x" }, "sha512-/lAIjX8aYFRByhh6L5rYtPEDRqa9de/4V/juOXcta5frjvzXO4/sqEtyytse0g3zZFuWu5cDN0MkLz2qRDD2Ag=="], - - "tsx/esbuild/@esbuild/linux-x64": ["@esbuild/linux-x64@0.28.1", "", { "os": "linux", "cpu": "x64" }, "sha512-u/anNYF2mmVOEDwLtnQ1wOr3EZ9sTNGLWrsYGYwHWzGA3Si84IOkHXlbWTD1NB+9/1lcnweYKO54uhxZydNzfA=="], - - "tsx/esbuild/@esbuild/netbsd-arm64": ["@esbuild/netbsd-arm64@0.28.1", "", { "os": "none", "cpu": "arm64" }, "sha512-oks0DYbLwWMmaakTsCb+zL4E+aHRVLom9IJZOAthMQEPiQmydXHkziYEsGYRx0uNV/IjEKGAV941JzH02pflqw=="], - - "tsx/esbuild/@esbuild/netbsd-x64": ["@esbuild/netbsd-x64@0.28.1", "", { "os": "none", "cpu": "x64" }, "sha512-aeL6lAnN89Hz43Mlh1G8ARasbuoYvSITDEx0tHh5b7jJnHcssqgjy9Yx430GDpmCa6OyrKoS0aNRjKundRizGg=="], - - "tsx/esbuild/@esbuild/openbsd-arm64": ["@esbuild/openbsd-arm64@0.28.1", "", { "os": "openbsd", "cpu": "arm64" }, "sha512-MEFJe5C3R8pwXdZ5Y21oo6m7ePiS0d9pWucn99O/wvyJZChoIQKrQDxKrGeW8F5+T0okTHesAmDeiHDTIq0V/Q=="], - - "tsx/esbuild/@esbuild/openbsd-x64": ["@esbuild/openbsd-x64@0.28.1", "", { "os": "openbsd", "cpu": "x64" }, "sha512-i/ZLIOafE0Z8cI/XANJAixoJL/uRAoS2xOA3rb0xN+KK0K177cMAsQYkzHtBrtMXAKuAc7HGgcWiZ/sRC1Nxgw=="], - - "tsx/esbuild/@esbuild/sunos-x64": ["@esbuild/sunos-x64@0.28.1", "", { "os": "sunos", "cpu": "x64" }, "sha512-BEjgtECkL3vY+SaSQ6nzVfiALUeFxpawyp8Jmf5PtYhf1Ug40N1h/hxlhts+f1FvSvarEigdxS3BlSMI2PJLcQ=="], - - "tsx/esbuild/@esbuild/win32-arm64": ["@esbuild/win32-arm64@0.28.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-lCv9eK/H6ZJWbE7bh2nw54CZ9M2nupBxJcTsdk/QQnWkdSjKGuxmmH8/GWrlT1eMmZfn4dGcCjRte397WqfQXA=="], - - "tsx/esbuild/@esbuild/win32-ia32": ["@esbuild/win32-ia32@0.28.1", "", { "os": "win32", "cpu": "ia32" }, "sha512-zvb/mB2bSCoJOpoCBgYKKpX6YM6mJBlBUVUtVj41DlZJVEB6/0CKlRYxP5wWl1C1ILiCoAU5wZZ4q1P3qeS6Eg=="], - - "tsx/esbuild/@esbuild/win32-x64": ["@esbuild/win32-x64@0.28.1", "", { "os": "win32", "cpu": "x64" }, "sha512-bm4Mowrv+GXMlpWX++EcXw/iLyd1o3+bJkC2DkWXYVvgZCqD/bSj9ctZeAMC3cIxgjRVR2Dufaiu4YPxr5gW1A=="], - "unhead/unplugin/picomatch": ["picomatch@4.0.5", "", {}, "sha512-RvwwcruNjI1ncT5xRakeyS9Lf8lcItv34KD+aif+VH9kduAyfYBipGh12274xtenIPZ119/R9BdTBa8gAwSh0A=="], "unimport/strip-literal/js-tokens": ["js-tokens@10.0.0", "", {}, "sha512-lM/UBzQmfJRo9ABXbPWemivdCW8V2G8FHaHdypQaIy523snUjog0W71ayWXTjiR+ixeMyVHN2XcpnTd/liPg/Q=="], diff --git a/docs/drizzle-v1-effect-upgrade-plan.md b/docs/drizzle-v1-effect-upgrade-plan.md new file mode 100644 index 000000000..2a7186839 --- /dev/null +++ b/docs/drizzle-v1-effect-upgrade-plan.md @@ -0,0 +1,315 @@ +# Drizzle 1.0 + Effect driver upgrade plan + +Written 2026-09-15 against `main` (`0bfb54137c`). Maple is on `drizzle-orm@0.45.2` / +`drizzle-kit@0.31.10` with the `postgres-js` driver on Workers and `pglite` in vitest, on +`effect@4.0.0-rc.112`. + +## What is true today + +| Fact | Value | Consequence | +| --------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Newest drizzle 1.0 build | Tagged: `1.0.0-rc.4` (2026-06-27). Snapshot: `1.0.0-rc.5-5935859` (2026-09-09) off the `rc5` branch; `latest` is still `0.45.2` | No GA. Adopting means pinning an RC in prod. Only the rc.5 line runs on current effect (see below). | +| rc.4 effect peer range | `effect >=4.0.0-beta.83`, same for `@effect/sql-pg` and `@effect/sql-pglite` | Our rc.112 pin satisfies it. Also covers the blocked rc.115 branch. | +| `@effect/sql-pg@4.0.0-rc.112` | node-postgres (`pg@^8.23`, `pg-pool`, `pg-types`, `pg-cursor`) | Driver swap from postgres.js. Cloudflare needs `pg >= 8.16.3` and `nodejs_compat`, and calls pg the recommended Hyperdrive driver. | +| `@effect/sql-pglite@4.0.0-rc.112` | needs `@electric-sql/pglite ^0.5.6`; accepts `liveClient` | We are on 0.5.4, bump. The test harness can keep its snapshot-restored instance and the Date-param proxy. | +| `PgClient.make` | runs `SELECT 1` eagerly inside `acquireRelease`, 5s default timeout, `pool.end()` capped at 1s | That probe is exactly the round trip Maple removed. Use `PgClient.fromPool({ acquire })` with our own lazily created `pg.Pool` instead. | +| `EffectLogger.logQuery` | returns an `Effect`, service fixed at `PgDrizzle.make` | Per-call statement collection survives: the logger reads a `Context.Reference` set per `Database.execute` call, so one db instance per invocation replaces the per-call `wrapMaplePgClient`. | +| Effect query errors | `EffectDrizzleQueryError { query, params, cause: Cause.fail(SqlError) }`; `SqlError.reason` is pre-classified (`ConnectionError` 08xx, `UniqueViolation` 23505, `ConstraintError` 23xxx, `DeadlockError` 40P01, `SerializationError`, `SqlSyntaxError` 42xxx, …) with `isRetryable` | `postgres-errors.ts` reads `reason._tag` instead of postgres.js codes. `error.type` values on spans change. | +| Migrations folder | v1 kit uses "v3" layout: one folder per migration with `migration.sql` + snapshot, no `_journal.json`; migrator throws if `meta/_journal.json` exists; migration table gains `name` and `applied_at` and is backfilled | `drizzle-kit up` rewrites `packages/db/drizzle/`; `readBundledMigrationsSql` and the docs must follow. | +| RQB / relations usage | none | RQB v2 rewrite does not apply to us. | +| v1 API breaks that hit us | `getTableColumns` → `getColumns` (3 sites); `strict` removed from `drizzle.config`; `schemaFilter` now defaults to all schemas | Small. | +| Call-site surface | 73 files, ~289 `execute` calls, 33 `db.transaction(async tx => …)` sites in 15 files, 16 services on `makeDbExecute`, 13 Promise-land helpers typed on `MaplePgClient`/`DatabaseClient`, 5 raw `db.execute(sql…)` sites | Phase B is a mechanical but wide sweep. | +| Tests | 77 files on `createTestDb` (PGlite), 11 files faking `Database.execute` directly, 2 proxying `MapleDatabaseTransaction` | Harness change is central; the 13 direct fakes are hand edits. | + +The 2026-08-22 assessment said revisit when "1.0 is stable AND `@effect/sql-pg` is on our +effect line". The second condition is met. The first is not, and nothing suggests when it will be. + +## Recommendation + +Split the work so the ORM major and the driver swap never land in the same deploy: + +1. **Phase 0, spike (done, see results below).** rc.4's effect driver does not import on effect + rc.112; the `rc5` branch fixed that in August and the `1.0.0-rc.5-5935859` snapshot runs the + spike unpatched. +2. **Phase A, drizzle 1.0 on the existing drivers (done on `chore/drizzle-v1-rc4`).** Version bump, + `drizzle-kit up`, the `getColumns` sites, the migration-folder readers. Behaviour-neutral for + the Workers: still postgres.js, still Promise-land call sites. +3. **Phase B, the Effect driver (4 to 6 days).** Rebuild `DatabaseLive` and the connection + scope over `PgClient` + `PgDrizzle`, then sweep the call sites to `yield*`. Needs drizzle + `>= 1.0.0-rc.5`: either the tagged rc.5 once it is cut, or the `1.0.0-rc.5-5935859` snapshot + now. Pinning a commit-suffixed snapshot in prod is the owner's call; the kit in that snapshot + reads the converted folder unchanged, so bumping from rc.4 is a manifest change only. + +Gate B on A having soaked in prod for at least a week, because A already moves the migration +table and the query compiler, and B moves the wire driver. If one of them regresses, we want to +know which. + +## Phase 0: spike + +Branch from `main` in a fresh worktree with a real `bun install` (a mirror is wrong for a +dependency bump). Everything below is a check, not a change to keep. + +- [ ] `bun add drizzle-orm@1.0.0-rc.4 @effect/sql-pg@4.0.0-rc.112 @effect/sql-pglite@4.0.0-rc.112` in `packages/db`, bump `@electric-sql/pglite` to `^0.5.6` in the three packages that pin it. rc.4 is well past the `bunfig.toml` release-age quarantine. +- [ ] Typecheck a throwaway module that builds `PgDrizzle.make({ schema })` over `PgClient.fromPool` and runs one `yield* db.select().from(apiKeys)`. drizzle rc.4 was compiled in June against the beta.83 API; it uses `Context.Service`, `Effect.fn`, `Effect.catch`, `Effectable`, `Schema.TaggedErrorClass`, `Layer.effect`, all present in rc.112, but the `.d.ts` files are what have to agree. +- [ ] Confirm `fromPool` does not probe. In rc.112 the `SELECT 1` lives in `make`'s `acquire`, not in `fromPool`. Confirm `pool.end()` under `Effect.timeoutOption(1000)` is only in `make` as well, or we need our own release. +- [ ] Confirm the logger runs in the caller's fiber: set a `Context.Reference` before `yield* db.select()`, assert `logQuery` sees it. This is what keeps `db.query.text` per call. +- [ ] Bundle and cold start: build `apps/api` with `pg` in place of `postgres` and compare against `apps/api/scripts/bench-startup-cpu.ts`. `pg` pulls `pg-types`, `pg-cursor`, `pg-connection-string`. Confirm `nodejs_compat` is on the api Worker (it is on alerting, ai, landing; the api one is set through infra, verify). +- [ ] Dial latency: under `bun dev` against docker Postgres, compare `db.duration_ms` on a warm `Database.execute` between postgres.js and `pg.Pool`. Hyperdrive numbers can only come from prod (no other stage has a database; `deploy-stg` is disabled; PR previews bind no `MAPLE_DB`), so this is a sanity check, not the gate. The prod gate is the internal-org `Database.execute` span dashboard after Phase B ships. +- [ ] Wire-format parity, the risk PGlite cannot show: `timestamptz` in `mode: "date"`, `jsonb`, `bigint`/`count(*)::int`, `numeric`, `text[]`. Run the existing `db-execute` and one service test (`ApiKeysService`) against docker Postgres through both drivers and diff the decoded rows. +- [ ] `undefined` inside `eq`/`and`: check whether rc.4 throws at runtime. If it does, grep the 289 sites for optional operands. Typecheck will not catch it. +- [ ] `drizzle-kit up` on a copy of `packages/db/drizzle/`: confirm it handles the gap at `0028` (we go `0027` → `0029`), then `drizzle-kit generate` must produce an empty diff. Confirm `schemaFilter: ["public"]` reproduces today's behaviour on PlanetScale (v1 manages every schema by default; we have the `drizzle` migrations schema and Electric publication objects it must not touch). + +Write the numbers into this file under a "Spike results" heading. Cost and dial latency decide +whether Phase B happens at all. + +## Phase A: drizzle 1.0 on the current drivers + +Goal: `drizzle-orm@1.0.0-rc.4` + `drizzle-kit@1.0.0-rc.4`, still `postgres-js` on Workers and +`pglite` in tests, no call-site changes beyond renames. + +1. Bump `drizzle-orm` in `apps/api`, `apps/ai`, `packages/backend`, `packages/db`, and + `drizzle-kit` in `packages/db`. Bump `@electric-sql/pglite` to `^0.5.6` in the same sweep. +2. `getTableColumns` → `getColumns` in `ApiKeysService.ts` (2) and + `OrganizationService.org-scoped-tables.test.ts` (1). +3. `packages/db/drizzle.config.ts`: drop `strict: true`, add `schemaFilter: ["public"]`. +4. Migration folder: run `drizzle-kit up` in `packages/db`, commit the rewritten tree. Then: + - `packages/db/src/migrate.ts`: `readBundledMigrationsSql` walks `drizzle/*/migration.sql` in + folder order instead of `drizzle/*.sql`. `runMigrations` keeps using the driver migrator. + - `packages/backend/test/pglite-snapshot.ts` needs no change; its key is derived from the SQL. + The snapshot cache directory will simply get a new entry. + - `docs/persistence.md` "Authoring migrations": journal sentence goes, folder-per-migration + comes in. The memory note about hand-authored journal entries is obsolete after this. + - `.github/workflows/ingest-rust-tests.yml` path filters still match `packages/db/drizzle/**`. + - `packages/db/scripts/planetscale-apply-schema.ts` shells to `drizzle-kit migrate`; the v1 + migrator backfills `name`/`applied_at` on the existing `drizzle.__drizzle_migrations` rows. + Prod migrations are manual (`bun run migrate:prod`), so this backfill is a deliberate step + in the deploy notes, run once against direct 5432 before the Worker deploy. +5. Verify, in this order: `bun typecheck`; `bun run --cwd packages/db test`; + `bun run --cwd packages/backend test src/platform` (the migrator and snapshot path); + `bun run --cwd packages/backend test src/services/org` (the `getColumns` sites); + `bun db:up && bun db:migrate:local` against a fresh docker volume, then again to prove it is a + no-op; `drizzle-kit generate` produces nothing. +6. Deploy notes: apply the backfilling migrate to prod first, then deploy. Rollback is a revert of + the Worker deploy; the two new columns on the migration table are harmless to 0.45's migrator. + +Do not touch `Database.execute`, `pg-connection-scope.ts`, or any service in this phase. + +## Phase B: the Effect driver + +Goal: `Database.execute` takes an Effect, queries are `yield*`ed, the typed error channel reaches +the service boundary, and one connection per invocation is still the rule. + +### B1. Platform layer (`packages/backend/src/platform`, `packages/db/src`) + +- `packages/db/src/client.ts`: replace `createMaplePgSocket` + `wrapMaplePgClient` with + `makeMaplePgPool(connectionString, { maxConnections: 5, connectTimeoutSeconds: 10 })` returning + a lazily created `pg.Pool` plus `end`, and `makeMapleEffectDb(client: PgClient)` that runs + `PgDrizzle.make({ schema })` with `EffectCache` default and our `EffectLogger`. Keep `postgres` as + a devDependency of `packages/db` for the six scripts that use it directly. +- `DatabaseLive.ts`: + - `DatabaseApi.execute: (fn: (db: MapleEffectDb) => Effect) => Effect`. + `DatabaseError` stays the single boundary type; `toDatabaseError` now unwraps + `EffectDrizzleQueryError` → `SqlError.reason` → the pg error, and carries `reason._tag` so + `postgres-errors.ts` classifies on the tag and falls back to the pg `code` in + `reason.cause`. + - `executeWithSpan` keeps the span shape (`db.system.name`, `peer.service`, `db.query.text`, + `db.duration_ms`, `error.type`, `db.response.status_code`). Statement collection moves to a + `CurrentStatementCollector` `Context.Reference` that the `EffectLogger` reads; `execute` + provides a fresh collector per call. Decide during B1 whether the `@effect/sql` + per-statement spans stay (they nest under ours and roughly double self-observability + span volume) or are suppressed with `Effect.withTracerEnabled(false)` inside the body. + - Drop the `tryPromise` boundary. The contention retry in `db-execute.ts` uses + `reason.isRetryable` (`DeadlockError`, `SerializationError`) and keeps the SQLSTATE + regex as a fallback. +- `pg-connection-scope.ts`: same three-state machine. `Open` now holds a `Scope` that owns the + pool via `PgClient.fromPool`, the `PgClient`, and the one `MapleEffectDb` built over it. `run` + provides the collector and calls `fn(db)`. `close` closes the `Scope`, which ends the pool. The + `SCOPE_CLOSED` refusal, `db.connect.reused`, `trackOutboundSlot`, and + `executeOnFreshPgClient` keep their semantics. `pgConnectionScopeFrom(db)` takes a + `MapleEffectDb`. The Pool.use evaluation from 2026-09-08 still stands: this is a memoized handle + with a terminal state, not a lease. +- `postgres-errors.ts`: node-postgres does not emit `CONNECT_TIMEOUT`; a stalled dial arrives as + `ConnectionError` with message "Connection timed out" or the socket's `ECONN*` code. Map + `error.type` from `reason._tag` (`ConnectionError`, `AuthenticationError`, …) with the pg code + appended where present. Internal dashboards and alert rules that key on + `error.type = CONNECT_TIMEOUT` change in the same PR. +- `DatabasePgliteLive.ts` / `test-pglite.ts`: `PgliteClient.make({ liveClient: withDateParamGuard(pglite) })` + then `PgDrizzle.make` from `drizzle-orm/effect-pglite`. The Date-param guard exists because + postgres.js rejects `Date` params; `pg` serializes them. After B ships the guard no longer + models the deployed driver and should be removed, with `msToSqlTimestamp` kept as the + convention. +- `migrate.ts`: stay on the Promise migrator from `drizzle-orm/pglite/migrator` for the snapshot + builder; there is no reason to make `globalSetup` Effect-shaped. + +Land B1 with the old `execute` signature still exported as `executePromise` for one commit so +the sweep in B2 can be split across PRs by service directory without a flag day. + +### B2. Call-site sweep (mechanical, delegate) + +Per service directory, one PR each, roughly in this order so the widest error-mapping cases go +first: `platform` and `org` (ApiKeys, Organization), `auth` (three transaction-heavy services, +`mcp-oauth-family.ts` helpers typed on `MapleDatabaseTransaction`), `alerts`, `errors` +(`error-tick-persistence.ts`, `apply-diagnosis.ts`, `issue-severity.ts`'s `TriageSeverityDb` +union), `integrations`, `dashboards`, then `apps/ai` and `apps/alerting`. + +Rules for the sweep: + +- `dbExecute((db) => db.select()…)` → `dbExecute((db) => db.select()…)` unchanged where the + callback was a single awaited query; the query builder is already an Effect. +- `dbExecute((db) => db.transaction(async (tx) => { … }))` → `db.transaction((tx) => Effect.gen(function* () { … }))`. + `await tx.x` → `yield* tx.x`. A thrown `Error` used to roll back; now fail with a + `Schema.TaggedError` and let the channel carry it. `SqlError` joins the transaction's error + channel and `toDatabaseError` absorbs it at the boundary. +- Promise-land helpers typed `(db: MaplePgClient | MapleDatabaseTransaction)` become + `Effect.fn` functions over `MapleEffectDb | MapleEffectTx`. +- Raw `db.execute(sql…)` returns `readonly Row[]`; none of the five sites read `.count`. +- `msToDate` / `dateToMs` at the drizzle boundary are unchanged. +- Tests that fake `Database.execute` (11 files) switch to `execute: (fn) => fn(fakeDb)` where + `fakeDb` is a PGlite-backed effect db from `createTestDb`; the two `failInsertOf` proxies over + `MapleDatabaseTransaction` are rewritten against `MapleEffectTx`. + +Verification per PR: `bun typecheck`, the directory's own `bun run --cwd packages/backend test src/services/`, and `bun run lint` (the effect-boundaries gate should now see +no `tryPromise` in these services). + +### B3. Rollout + +- Deploy B1 + the first sweep PR together; the rest can follow daily. +- Watch, in Maple's own org: `Database.execute` p50/p95 by `db.connect.reused`, `error.type` + distribution, `/health` unaffected, `POST /mcp` `touchLastUsed` not regressing to + `SCOPE_CLOSED` (the fork-request-scoped regression test covers the mechanism, prod covers + the timing). +- Rollback is a revert of the Worker deploy. The migration table is untouched by B. + +## Phase 0 results (2026-09-15) + +Run in the same worktree on top of Phase A, with `@effect/sql-pg@4.0.0-rc.112` and +`@effect/sql-pglite@4.0.0-rc.112` added temporarily. The spike file is not kept; what it showed: + +- **rc.4's effect layer does not import on effect rc.112.** `effect-core/errors.js` and + `cache/core/cache-effect.js` call `Schema.TaggedErrorClass()`, which is the beta.83 name; + rc.112 and rc.115 export `Schema.TaggedError`. Upstream fixed this on the `rc5` branch + (PR #6108, merged 2026-08-12, effect peer now `>=4.0.0-beta.105`), and the npm snapshot + `1.0.0-rc.5-5935859` (2026-09-09) carries it. On rc.4 the results below were obtained with that + one symbol renamed in the installed copy; on the rc.5 snapshot the same spike passed unpatched, + `tsc` was clean in db, backend, api and ai, `drizzle-kit check` and `generate` were no-ops on the + converted folder, and the db (43) and backend platform + org (171) tests passed. +- **Typechecks against rc.112** for `drizzle-orm/effect-pglite`, `drizzle-orm/effect-postgres`, + `PgClient.fromPool` + `PgClient.layerFrom`, `PgliteClient.layer({ liveClient })`, and a + `Layer.succeed(EffectLogger, …)` logger. The `.d.ts` surface is fine; only the runtime rename bit. +- **Per-call statement collector works as a `Context.Reference`.** A logger whose `logQuery` + reads the reference saw the `select … from "api_keys"` and the `pg_advisory_xact_lock` statement + inside a `db.transaction`, with the reference provided around the caller's program. One db per + invocation with a per-call collector is viable; no per-call drizzle wrapper needed. +- **Transactions**: `db.transaction((tx) => Effect.gen(...))` with `yield* tx.execute(sql…)` + works; the error channel is `E | SqlError`. +- **Errors** arrive as `EffectDrizzleQueryError { query, params, cause: Cause }`; + `Cause.findErrorOption(cause)` yields the `SqlError`, whose `reason` was `SqlSyntaxError` with the + pg error (code `42P01`) as `reason.cause`. That is enough for `postgres-errors.ts` to classify + on the tag and fall back to SQLSTATE. +- **Raw `execute` returns the driver's result object, not rows.** Both effect sessions map + `mode === "raw"` to the statement's `.raw`, so `db.execute(sql…)` yields PGlite's + `{ rows, fields, affectedRows }` (and node-postgres's `QueryResult` under `sql-pg`) while the + type claims `readonly Row[]`. The five raw sites need a `.rows` normaliser in Phase B, and the + declared type cannot be trusted for them. +- `PgliteClient.layer` and `PgClient` need `Reactivity.layer` and a `Scope`; the platform layer + provides both inside the invocation scope. +- Not measured: Workers bundle delta and Hyperdrive dial latency for `pg`. Those stay on the + checklist for when Phase B is unblocked. + +## Phase A results (2026-09-15, branch `chore/drizzle-v1-rc4`) + +Landed on the branch; nothing deployed. What the conversion actually took: + +- `drizzle-kit up` is strict: it converts journal entries in order and throws + `MigrationSnapshotNotFoundCliError` at the first entry without a `meta/_snapshot.json`, + having already deleted the `.sql` files it converted. Four hand-authored migrations had no + snapshot (`0029`, `0036`, `0038`, `0045`). The fix was to restore the folder, synthesise the four + snapshots from their exact neighbours (0029 is data-only so equals 0027; 0036 is 0035 minus + `org_spend_limits`; 0038 takes 0039's snapshot, since 0039 is data-only; 0045 is 0046 minus + `live_activities` and `mobile_devices.live_activity_start_token`), re-link `prevId` through them, + and rerun `up`. Every `migration.sql` is byte-identical to the old file, so the migrator's + hash-based backfill of `drizzle.__drizzle_migrations` will match production rows. +- The `up` conversion serialises partial-index `WHERE` clauses table-qualified + (`"alert_incidents"."status" = 'open'`) while a fresh schema read does not (`"status" = 'open'`), + so the first `generate` after `up` emitted a migration dropping and recreating all 8 partial + indexes with identical definitions. Fixed by replacing the head folder's `ddl` with the freshly + generated one and deleting the spurious folder; `generate` is now a no-op and `check` passes. + Intermediate snapshots keep the qualified form, which only `up` ever read. +- `0010_huge_dexter_bennett` and `0011_electric_publication_wave1` share a second, so their v3 + folders share a timestamp prefix and sort in the opposite order. They are independent + (a column on `cloudflare_analytics_state` versus a publication change), so nothing was renamed. +- `drizzle()` in v1 has no `(client, config)` overload and no `schema` option (that only fed the + removed RQB v1); the three constructors are now `drizzle({ client, logger })`. +- `getTableColumns` still exists in rc.4 as a deprecated alias, so the rename is cosmetic. +- Verified: `tsc` clean in `packages/db`, `packages/backend`, `apps/api`, `apps/ai`; `bun run lint` + clean; `bun install --frozen-lockfile` clean under bun 1.4.0; vitest green for `packages/db` + (43), backend `src/platform` (83, includes the v1 migrator building the PGlite snapshot), + `src/services/org` (88), `src/services/errors/issue-severity` (11, raw-client `runMigrations`), + `src/services/alerts` + `src/services/auth` (448). Not run: the full `apps/api` and + `packages/backend` suites (late-night rule); run them before merging. + +## Phase B progress (2026-09-15, same branch) + +Owner decision: continue on the `1.0.0-rc.5-5935859` snapshot and start Phase B without the +one-week soak. B1 is committed (`feat(db): Effect-native drizzle over @effect/sql-pg, platform +layer`); the service sweep runs per directory on top of it. + +What B1 settled that the plan above left open: + +- `Effect.provide(layer)` scopes the layer to the effect it wraps, so building the `PgClient` + that way ended the pool the moment `PgDrizzle.make` returned. The client is built with + `Layer.build` into the invocation's Scope (`packages/db/src/client.ts`), and the PGlite twin does + the same for symmetry. +- `Layer.merge(logger, PgDrizzle.DefaultServices)` let drizzle's no-op logger shadow Maple's, so + no statement was captured. `mapleDrizzleServices` merges the logger with `EffectCache.Default` + only. +- `@effect/sql`'s per-statement spans are suppressed inside `executeWithSpan` with + `Effect.withTracerEnabled(false)`; one span per logical call, as before. +- `ExecuteError` is spelled `DatabaseError | Exclude>` because + that is what `Effect.catchIf` with a refinement produces for a generic `E`; the type arguments + are pinned in `absorbDriverErrors` because inference otherwise leaks `E` into the success + channel. +- `PgConnectionScopeApi.close` is an `Effect`, not a Promise; the scope serialises its first open + against a concurrent close with a one-permit semaphore. +- A refused dial through the whole stack lands as `error.type = ECONNREFUSED`, + `db.connect.failed = true`, message `connect ECONNREFUSED 127.0.0.1:1 [while: select 1]` + (verified with a probe, not a unit test). A dial that hits `connectionTimeoutMillis` carries no + code and lands as `error.type = ConnectionError`; dashboards keyed on `CONNECT_TIMEOUT` need + both. +- `rawRows` (`packages/backend/src/platform/raw-rows.ts`) normalises raw `db.execute` results. +- Verified against a real Postgres (docker) on the new driver: `apps/api`'s + `pg-connection-scope.integration.test.ts` passes 6/6 (one backend per scope in + `pg_stat_activity`, transactions, refused dial classified). Not yet verified: the Workers + bundle with `pg`. +- **The v1 migrator refuses orphan rows.** Its one-time upgrade of `drizzle.__drizzle_migrations` + matches each row to a local folder by second-truncated `created_at`, then by hash, and aborts if + any row matches nothing. The docker dev database has five: the pre-renumbering versions of + `premium_korg` through `slippery_winter_soldier` (superseded, their current versions have their + own rows) and one migration from an unmerged branch. Production likely holds the first four. + `bun run --cwd packages/db ps:migrations-preflight main` (read-only) names each row and prints + the DELETE (superseded) or UPDATE (renumbered, identical SQL); a row whose SQL changed after it + ran gets a `git diff` to apply by hand first. Run it before `bun run migrate:prod`. +- **The v1 migrator applies every unrecorded folder**, not only those newer than the last + recorded row. Rehearsed on the docker database (2026-09-19): three migrations whose DDL was + present without a row (`issue_pull_requests_verification`, `anomaly_index_tightening`, + `home_list_indexes`) made the run fail with `42P07 relation already exists` after the table + upgrade had committed. The preflight now lists the pending folders with their first statement + and the INSERT that records an already-applied one. After recording those three, the run applied + the seven true pending migrations and a second run was a no-op. + +## What to carry over from the previous assessment + +- Do not `Effect.orDie` at call sites; `DatabaseError` remains the one boundary and + `makeDbExecute` the one place that retries, logs and remaps. +- One connection per invocation, created lazily, closed at the boundary, never reused across + invocations. The `pg.Pool` per invocation with `max: 5` is the same ceiling postgres.js had; + keep the head-of-line note from `pg-connection-scope.ts` next to it. +- `forkRequestScoped` must still start immediately; nothing here changes middleware order. + +## Open questions for the owner + +- The pin is the commit-suffixed snapshot `1.0.0-rc.5-5935859`, chosen because the tagged rc.4 + cannot be imported on current effect. Move to the tagged rc.5 (or GA) when drizzle cuts it; the + kit reads the converted folder unchanged, so that is a manifest bump. +- Does the extra Workers bundle (`pg` + `pg-types` + `pg-cursor`) fit the api cold-start budget? + Not measured before merge; no non-prod stage has a database, so the first deploy is the number. diff --git a/docs/infra.md b/docs/infra.md index 3d3e4ae3a..71ec193da 100644 --- a/docs/infra.md +++ b/docs/infra.md @@ -151,8 +151,8 @@ Gotchas worth knowing: - **The dev Hyperdrive origin must set `sslmode: "disable"`.** Alchemy defaults a local origin to `sslmode=prefer` (`Cloudflare/Hyperdrive/ConnectBinding.ts`), the driver then - attempts TLS against the docker Postgres, which has SSL off, and every DB call 503s with - `CONNECT_TIMEOUT` after the dial budget. See `ManagedMapleDb`. + attempts TLS against the docker Postgres, which has SSL off, and every DB call 503s after the + dial budget (`error.type = ConnectionError`; `CONNECT_TIMEOUT` under the old postgres.js driver). See `ManagedMapleDb`. - **`MAPLE_OTEL_INGEST_KEY` is optional on dev stages only** (`selfObservabilityEnv`). The local stack resolves the same env contract as a deploy, and no developer has a real ingest key; without the exemption the whole stack refuses to start over a key whose only diff --git a/docs/persistence.md b/docs/persistence.md index 28085584b..5009fa4bf 100644 --- a/docs/persistence.md +++ b/docs/persistence.md @@ -21,25 +21,33 @@ boundary — use `msToDate` / `dateToMs` from `packages/backend/src/platform/tim ## Connections on Workers -One connection per invocation — request, cron tick, or Workflow run — created lazily on the first +One connection pool per invocation — request, cron tick, or Workflow run — created lazily on the first query and closed at the boundary. This is Cloudflare's documented Hyperdrive shape, and `makePgConnectionScope` (`packages/backend/src/platform/pg-connection-scope.ts`) is the only implementation -of it: `pgConnectionMiddleware` installs a scope for HTTP, `withPgConnectionScope` for cron, and +of it: `withPgConnectionScope` installs a scope around each worker's request handler and cron tick, and `executeOnFreshPgClient` is the same scope one call long for entry points that have none. Workers tie TCP sockets to the invocation that opened them, so a connection may be reused freely within one but must never outlive it. Two settings carry hard-won history: -- **`max: 5`** — Cloudflare's documented value. `max` is a ceiling, not a reservation: postgres.js +The driver is node-postgres through `@effect/sql-pg`: one `pg.Pool` per invocation, built lazily +by `createMaplePgPool` (`packages/db/src/client.ts`) and handed to `PgClient.fromPool` rather than +`PgClient.make`, because `make` probes with `SELECT 1` at acquire. Two settings carry hard-won +history: + +- **`max: 5`** — Cloudflare's documented value. `max` is a ceiling, not a reservation: the pool opens a second socket only when a second statement is genuinely in flight. It was 1 for one day on the theory that Postgres should hold at most one of the Worker's six outbound slots, which serialized every statement in a cron tick behind one connection (`SELECT actors` p50 928ms → 5687ms at flat volume). -- **A bounded `connect_timeout`** — postgres.js only raises `CONNECT_TIMEOUT` from - `connectTimedOut()`, and its `timer()` is a no-op when the option is unset, so an unbounded dial - hangs for the whole invocation and lands with no `error.type` to classify. The bound is generous - and single: a 2s cap alone once took production 5xx from 0.06% to 5.01%, and the retry ladder - that followed existed only to compensate for it. +- **A bounded dial** (10s, `connectionTimeoutMillis` on each `Client`, never on the `Pool`) — + unset, a stalled dial hangs for the whole invocation and lands with no `error.type` to classify. + On the pool the same option also times out waiting for a free client, so a fan-out wider than + `max` would fail against a healthy server. A dial that hits the bound carries no driver code and + lands as `error.type = ConnectionError` (`postgres-errors.ts` classifies code-less acquire + failures); a refused one carries the socket's own code (`ECONNREFUSED`). The bound is generous and single: a + 2s cap alone once took production 5xx from 0.06% to 5.01%, and the retry ladder that followed + existed only to compensate for it. ## Local development @@ -61,9 +69,12 @@ Change the Drizzle schema, then generate the SQL and metadata together: bun run --cwd packages/db db:generate ``` -Review the generated file in `packages/db/drizzle/` and its matching journal/snapshot changes. -Do not hand-create a migration without also updating `drizzle/meta/_journal.json`; both deployed -Postgres and PGlite use Drizzle's journal ordering. +Review the generated folder in `packages/db/drizzle/`: one `_/` per migration +holding `migration.sql` and the DDL `snapshot.json` (drizzle-kit v1 layout, no journal). The +migrator orders folders by name and applies every folder the database has not recorded. A +hand-authored migration (data backfill, publication change) still needs a folder with both +files: run `drizzle-kit generate --custom --name ` to scaffold it rather than creating the +folder by hand, so the snapshot chain stays intact. Useful local commands: @@ -77,9 +88,31 @@ bun run --cwd packages/db db:studio ## Deployment and tests -CI runs `drizzle-kit migrate` against the stage's PlanetScale **direct** port 5432 before the -Alchemy deployment. Never run migrations through a pooler or Hyperdrive. The deployed Worker -does not migrate on boot. +Production migrations are applied by hand, before the Worker deploy: `bun run --cwd packages/db +ps:migrations-preflight main` (read-only, below), then `bun run migrate:prod`, which runs +`drizzle-kit migrate` against PlanetScale's **direct** port 5432. Never run migrations through a +pooler or Hyperdrive. The deployed Worker does not migrate on boot. + +The first v1 migrate on a database migrated by drizzle 0.x upgrades `drizzle.__drizzle_migrations` +in place (adds `name` and `applied_at`), matching every existing row to a local folder by +`created_at` truncated to the second, then by hash, and **refusing the whole run if any row matches +nothing**. A row like that is a migration that was applied and later renumbered or re-timestamped, +or one applied from a branch that never merged. Check before migrating. The report prints a +DELETE for a superseded row and an UPDATE for a renumbered row whose SQL is byte-identical; a row +whose SQL changed after it ran gets a `git diff` instead, because relabelling it would record +statements this database never saw as applied. + +The report also lists every local migration no row matches, because the v1 migrator applies all +of them where the 0.x migrator only applied those newer than the newest recorded timestamp. A +migration whose DDL reached the schema without a row (a `db:push`, a run that died after its +transaction committed) used to be skipped silently and now fails on the objects that already +exist. Compare each pending folder's first statement with the schema; record the ones already +applied with the INSERT the report prints rather than replaying them: + +```bash +bun run --cwd packages/db db:migrate:preflight # DATABASE_URL, defaults to the docker Postgres +bun run --cwd packages/db ps:migrations-preflight main # a PlanetScale branch, read-only +``` PGlite applies the same bundled migrations while its layer is built. The test harness caches a fresh migrated PGlite snapshot and restores it per test, so integration tests exercise the diff --git a/packages/backend/package.json b/packages/backend/package.json index 1c0aed1d2..d73a193a6 100644 --- a/packages/backend/package.json +++ b/packages/backend/package.json @@ -40,14 +40,14 @@ "@maple/widgets": "workspace:*", "@tinybirdco/sdk": "catalog:tinybird", "alchemy": "catalog:alchemy", - "drizzle-orm": "^0.45.1", + "drizzle-orm": "1.0.0-rc.5-5935859", "effect": "catalog:effect" }, "devDependencies": { "@cloudflare/workers-types": "catalog:alchemy", "@effect/language-service": "catalog:effect", "@effect/vitest": "catalog:effect", - "@electric-sql/pglite": "^0.5.2", + "@electric-sql/pglite": "^0.5.6", "@types/node": "catalog:tooling", "typescript": "catalog:tooling", "vitest": "catalog:" diff --git a/packages/backend/src/platform/DatabaseLive.test.ts b/packages/backend/src/platform/DatabaseLive.test.ts index 2053a4842..faaa2d6fb 100644 --- a/packages/backend/src/platform/DatabaseLive.test.ts +++ b/packages/backend/src/platform/DatabaseLive.test.ts @@ -1,8 +1,10 @@ import { afterEach, assert, describe, it } from "@effect/vitest" import { orgOnboardingState } from "@maple/db" import { eq, sql } from "drizzle-orm" -import { Effect, Exit, Tracer } from "effect" -import { Database, executeWithSpan } from "./DatabaseLive" +import { EffectDrizzleQueryError } from "drizzle-orm/effect-core" +import { Cause, Effect, Exit, Schema, Tracer } from "effect" +import { ConnectionError, SqlError, UniqueViolation } from "effect/unstable/sql/SqlError" +import { Database, DatabaseError, executeWithSpan } from "./DatabaseLive" import { PGLITE_DB_NAMESPACE } from "./DatabasePgliteLive" import { cleanupTestDbs, createTestDb, type TestDb } from "./test-pglite" @@ -33,6 +35,14 @@ const makeRecordingTracer = () => { const dbSpans = (spans: ReadonlyArray) => spans.filter((span) => span.attributes.get("db.system.name") === "postgresql") +/** A failure the callback raises on its own — not the driver's, so it must pass through untouched. */ +class CallbackFailure extends Schema.TaggedError()("@maple/test/CallbackFailure", { + message: Schema.String, +}) {} + +/** A pg error the way node-postgres raises it: the class hangs off `code`. */ +const pgError = (code: string, message: string): Error => Object.assign(new Error(message), { code }) + describe("Database execute span instrumentation", () => { it.effect("emits a Client-kind span with DB semconv attributes on success", () => Effect.gen(function* () { @@ -48,6 +58,7 @@ describe("Database execute span instrumentation", () => { assert.deepStrictEqual(rows, []) const [span, ...rest] = dbSpans(spans) assert.isDefined(span) + // One span per call: the driver's own per-statement spans are suppressed. assert.deepStrictEqual(rest, []) assert.strictEqual(span.kind, "client") assert.strictEqual(span.attributes.get("db.system.name"), "postgresql") @@ -93,12 +104,102 @@ describe("Database execute span instrumentation", () => { assert.include(span.attributes.get("db.query.text") as string, "select broken from nowhere") assert.strictEqual(span.name, "SELECT nowhere") assert.strictEqual(span.attributes.get("db.operation.name"), "SELECT") + // `undefined_table`, straight from the driver's SQLSTATE. + assert.strictEqual(span.attributes.get("error.type"), "42P01") + assert.strictEqual(span.attributes.get("db.response.status_code"), "42P01") assert.isNumber(span.attributes.get("db.duration_ms")) assert.strictEqual(span.status._tag, "Ended") assert.isTrue(span.status._tag === "Ended" && Exit.isFailure(span.status.exit)) }).pipe(Effect.provide(createTestDb(trackedDbs).layer)), ) + it.effect("absorbs the driver failure into DatabaseError, root cause first", () => + Effect.gen(function* () { + const database = yield* Database + + const error = yield* database + .execute((db) => db.execute(sql`select broken from nowhere`)) + .pipe(Effect.flip) + + assert.strictEqual(error._tag, "@maple/api/lib/DatabaseError") + // The Postgres diagnostic leads; the statement follows so a truncated + // log line still says what went wrong. + assert.match( + error.message, + /^relation "nowhere" does not exist \[while: select broken from nowhere\]/, + ) + assert.instanceOf(error.cause, SqlError) + }).pipe(Effect.provide(createTestDb(trackedDbs).layer)), + ) + + it.effect("never serializes the bound params of a failed statement", () => + Effect.gen(function* () { + const database = yield* Database + + const error = yield* database + .execute((db) => db.execute(sql`insert into nowhere values (${"sk_live_SECRET_HASH"})`)) + .pipe(Effect.flip) + + // drizzle's own error interpolates params into `message`, and + // `Schema.Defect` encodes `message` — so it must not be the stored cause. + const encoded = JSON.stringify(Schema.encodeSync(DatabaseError)(error)) + assert.notInclude(encoded, "sk_live_SECRET_HASH") + assert.notInclude(error.message, "sk_live_SECRET_HASH") + assert.include(encoded, 'relation \\"nowhere\\" does not exist') + }).pipe(Effect.provide(createTestDb(trackedDbs).layer)), + ) + + it.effect("rejects a bound Date inside a transaction in the test harness", () => + Effect.gen(function* () { + const database = yield* Database + + const error = yield* database + .execute((db) => + db.transaction((tx) => tx.execute(sql`select ${new Date(0)}::timestamptz as at`)), + ) + .pipe(Effect.flip) + + // `@effect/sql-pglite` routes BEGIN, the statement and ROLLBACK through + // `pglite.query`, so the guard sees transactions without a second hook. + assert.include(error.message, "Bound a Date as param $1") + }).pipe(Effect.provide(createTestDb(trackedDbs).layer)), + ) + + it.effect("absorbs a failed COMMIT into DatabaseError instead of dying", () => + Effect.gen(function* () { + const { spans, tracer } = makeRecordingTracer() + const database = yield* Database + yield* database.execute((db) => + db.execute(sql`create table deferred_parent (id int primary key)`), + ) + yield* database.execute((db) => + db.execute( + sql`create table deferred_child (parent_id int references deferred_parent (id) deferrable initially deferred)`, + ), + ) + + // Every statement succeeds; the foreign key is only checked at COMMIT, + // which `@effect/sql`'s transaction wrapper runs under `orDie`. + const exit = yield* database + .execute((db) => + db.transaction((tx) => + tx.execute(sql`insert into deferred_child (parent_id) values (1)`), + ), + ) + .pipe(Effect.withTracer(tracer), Effect.exit) + + assert.isTrue(Exit.isFailure(exit)) + const failure = Exit.isFailure(exit) ? Cause.findErrorOption(exit.cause) : undefined + assert.isTrue(failure !== undefined && failure._tag === "Some") + const error = failure?._tag === "Some" ? failure.value : undefined + assert.instanceOf(error, DatabaseError) + assert.include(error?.message, "foreign key") + const span = dbSpans(spans).at(-1) + assert.strictEqual(span?.attributes.get("error.type"), "23503") + assert.strictEqual(span?.attributes.get("db.connect.failed"), false) + }).pipe(Effect.provide(createTestDb(trackedDbs).layer)), + ) + it.effect("captures every statement of a transaction in one span", () => Effect.gen(function* () { const { spans, tracer } = makeRecordingTracer() @@ -107,15 +208,17 @@ describe("Database execute span instrumentation", () => { yield* database .execute((db) => - db.transaction(async (tx) => { - await tx - .insert(orgOnboardingState) - .values({ orgId: "org_tx_test", createdAt: now, updatedAt: now }) - await tx - .select() - .from(orgOnboardingState) - .where(eq(orgOnboardingState.orgId, "org_tx_test")) - }), + db.transaction((tx) => + Effect.gen(function* () { + yield* tx + .insert(orgOnboardingState) + .values({ orgId: "org_tx_test", createdAt: now, updatedAt: now }) + yield* tx + .select() + .from(orgOnboardingState) + .where(eq(orgOnboardingState.orgId, "org_tx_test")) + }), + ), ) .pipe(Effect.withTracer(tracer)) @@ -134,13 +237,35 @@ describe("Database execute span instrumentation", () => { }).pipe(Effect.provide(createTestDb(trackedDbs).layer)), ) + it.effect("passes a domain failure raised inside the callback through untouched", () => + Effect.gen(function* () { + const database = yield* Database + const rollback = new CallbackFailure({ message: "business rule violated" }) + + const error = yield* database + .execute((db) => + db.transaction((tx) => + Effect.gen(function* () { + yield* tx.select().from(orgOnboardingState) + return yield* Effect.fail(rollback) + }), + ), + ) + .pipe(Effect.flip) + + // Not a database failure, so not a DatabaseError: the callback's own + // error is what rolled the transaction back and what the caller sees. + assert.strictEqual(error, rollback) + }).pipe(Effect.provide(createTestDb(trackedDbs).layer)), + ) + it.effect("keeps the placeholder name when the call fails before any statement", () => Effect.gen(function* () { const { spans, tracer } = makeRecordingTracer() const database = yield* Database const exit = yield* database - .execute(() => Promise.reject(new Error("connection refused"))) + .execute(() => Effect.fail(new CallbackFailure({ message: "connection refused" }))) .pipe(Effect.withTracer(tracer), Effect.exit) assert.isTrue(Exit.isFailure(exit)) @@ -188,24 +313,30 @@ describe("Database execute span instrumentation", () => { * guesswork. These cover the split that resolves it. */ describe("Database execute failure classification", () => { - // There is no connect/query split any more. postgres.js connects on the first - // statement, so the split could only ever be synthesized by a `select 1` probe - // that cost a round trip on every request. What it was used to infer — is this - // a connection problem or a query problem — `error.type` states outright. + // There is no connect/query split. The pool connects on the first statement, + // so the split could only ever be synthesized by a `select 1` probe that cost + // a round trip on every request. What it was used to infer — is this a + // connection problem or a query problem — `error.type` states outright. it.effect("classifies a connection failure by class rather than by duration", () => Effect.gen(function* () { const { spans, tracer } = makeRecordingTracer() + const failure = new SqlError({ + reason: new ConnectionError({ + cause: pgError("ECONNREFUSED", "connect ECONNREFUSED 10.0.0.1:5432"), + message: "Connection error", + operation: "acquireConnection", + }), + }) - const exit = yield* executeWithSpan(() => - Promise.reject( - Object.assign(new Error("write CONNECT_TIMEOUT"), { code: "CONNECT_TIMEOUT" }), - ), - ).pipe(Effect.withTracer(tracer), Effect.exit) + const exit = yield* executeWithSpan(() => Effect.fail(failure)).pipe( + Effect.withTracer(tracer), + Effect.exit, + ) assert.isTrue(Exit.isFailure(exit)) const [span] = dbSpans(spans) assert.isDefined(span) - assert.strictEqual(span.attributes.get("error.type"), "CONNECT_TIMEOUT") + assert.strictEqual(span.attributes.get("error.type"), "ECONNREFUSED") assert.strictEqual(span.attributes.get("db.connect.failed"), true) assert.isNumber(span.attributes.get("db.duration_ms")) }), @@ -214,10 +345,26 @@ describe("Database execute failure classification", () => { it.effect("classifies a statement failure separately, with its SQLSTATE", () => Effect.gen(function* () { const { spans, tracer } = makeRecordingTracer() + const failure = new EffectDrizzleQueryError({ + query: 'insert into "api_keys" …', + params: [], + cause: Cause.fail( + new SqlError({ + reason: new UniqueViolation({ + cause: pgError( + "23505", + 'duplicate key value violates unique constraint "api_keys_pkey"', + ), + constraint: "api_keys_pkey", + }), + }), + ), + }) - const exit = yield* executeWithSpan(() => - Promise.reject(Object.assign(new Error("duplicate key"), { code: "23505" })), - ).pipe(Effect.withTracer(tracer), Effect.exit) + const exit = yield* executeWithSpan(() => Effect.fail(failure)).pipe( + Effect.withTracer(tracer), + Effect.exit, + ) assert.isTrue(Exit.isFailure(exit)) const [span] = dbSpans(spans) @@ -234,7 +381,7 @@ describe("Database execute failure classification", () => { yield* executeWithSpan((hooks) => { hooks.record({ "db.connect.reused": true }) - return Promise.resolve("ok") + return Effect.succeed("ok") }).pipe(Effect.withTracer(tracer)) const [span] = dbSpans(spans) diff --git a/packages/backend/src/platform/DatabaseLive.ts b/packages/backend/src/platform/DatabaseLive.ts index 5a7970c10..2ea97e193 100644 --- a/packages/backend/src/platform/DatabaseLive.ts +++ b/packages/backend/src/platform/DatabaseLive.ts @@ -1,50 +1,63 @@ -import type { MaplePgClient } from "@maple/db/client" +import { isMapleDbError, type MapleDb, type MapleDbError, MapleStatementCollector } from "@maple/db/client" import { fingerprintSql, SQL_TRACE_MAX, summarizeSql, truncateSql } from "@maple/query-engine/execution" -import { Clock, Context, Effect, Schema } from "effect" -import { isPostgresConnectionError, postgresErrorType, postgresSqlState } from "./postgres-errors" +import { EffectDrizzleQueryError } from "drizzle-orm/effect-core" +import { Cause, Clock, Context, Effect, Result, Schema } from "effect" +import { SqlError } from "effect/unstable/sql/SqlError" +import { + driverRootError, + driverSqlError, + isPostgresConnectionError, + postgresErrorType, + postgresSqlState, +} from "./postgres-errors" import { updateCurrentSpanName } from "./span-name" -export type DatabaseClient = MaplePgClient +export type DatabaseClient = MapleDb /** * `cause` is the driver's own error, kept for `postgres-errors.ts` to read the - * `code`/SQLSTATE off. It is `Schema.Defect()` rather than `Schema.Unknown` for - * the reason the convention gives: `Unknown` has no encoded form, so anything - * that serialized a `DatabaseError` serialized the raw postgres.js object — - * host, port, driver options and all. `Defect()` encodes an `Error` to its - * `name` and `message`, and `excludeCause: true` stops at the driver error - * instead of walking into the socket error underneath it. `toDatabaseError` - * already lifts the root cause's message into `message`, so the diagnostic half - * survives the narrowing. + * classification and SQLSTATE off. It is `Schema.Defect()` rather than + * `Schema.Unknown` for the reason the convention gives: `Unknown` has no + * encoded form, so anything that serialized a `DatabaseError` serialized the + * raw driver object — host, port, driver options and all. `Defect()` encodes an + * `Error` to its `name` and `message`, and `excludeCause: true` stops at the + * driver error instead of walking into the socket error underneath it. + * `toDatabaseError` already lifts the root cause's message into `message`, so + * the diagnostic half survives the narrowing. */ export class DatabaseError extends Schema.TaggedError()("@maple/api/lib/DatabaseError", { message: Schema.String, cause: Schema.Defect({ excludeCause: true }), }) {} +/** + * What a `Database.execute` call fails with: the driver's own failures are + * absorbed into `DatabaseError` at this boundary, everything the callback + * failed with on its own passes through untouched. Spelled through `Extract` + * because that is exactly what the `catchIf` refinement in `executeWithSpan` + * produces; for a concrete `E` it reads as `DatabaseError | `. + */ +export type ExecuteError = DatabaseError | Exclude> + export interface DatabaseApi { - readonly execute: (fn: (db: DatabaseClient) => Promise) => Effect.Effect + readonly execute: ( + fn: (db: MapleDb) => Effect.Effect, + ) => Effect.Effect, R> } /** - * Callbacks handed to an `executeWithSpan` body so it can report what only it - * knows: which statements ran, and any transport-level attributes discovered - * along the way. + * Callback handed to an `executeWithSpan` body so it can report what only it + * knows: transport-level attributes discovered along the way. Statements are + * collected without its help, through `MapleStatementCollector`. */ export interface ExecuteHooks { - /** - * Wire to the client's `onQuery` — every parameterized statement lands in - * `db.query.text`. - */ - readonly collect: (query: string) => void /** Merge extra attributes into the span at annotate time. */ readonly record: (attributes: Record) => void } /** - * Drizzle's own message is `Failed query: \nparams: ` — with the - * params inlined, a batched upsert of error rows runs to tens of KB. Span status - * and log lines truncate, so whatever comes first is what survives. + * A batched upsert of error rows runs to tens of KB of SQL. Span status and log + * lines truncate, so whatever comes first is what survives. */ const MAX_QUERY_MESSAGE_CHARS = 600 @@ -61,6 +74,19 @@ const capQueryMessage = (message: string): string => * on the span as `db.query.text`. */ export const toDatabaseError = (cause: unknown): DatabaseError => { + if (cause instanceof EffectDrizzleQueryError) { + const statement = capQueryMessage(cause.query) + const root = driverRootError(cause)?.message + return new DatabaseError({ + message: root ? `${root} [while: ${statement}]` : statement, + // Never the drizzle error itself: its `message` getter interpolates the + // bound params, and `Schema.Defect` encodes `message`. + cause: driverSqlError(cause) ?? new Error(`Failed query: ${statement}`), + }) + } + if (cause instanceof SqlError) { + return new DatabaseError({ message: driverRootError(cause)?.message ?? cause.message, cause }) + } const message = cause instanceof Error ? cause.message : "Database operation failed" const rootCause = cause instanceof Error && cause.cause instanceof Error ? cause.cause.message : undefined return new DatabaseError({ @@ -69,6 +95,37 @@ export const toDatabaseError = (cause: unknown): DatabaseError => { }) } +/** The driver failure a Cause carries as a defect, if it is one. */ +const driverDefect = (cause: Cause.Cause): MapleDbError | undefined => { + const defect = Cause.findDefect(cause) + return Result.isSuccess(defect) && isMapleDbError(defect.success) ? defect.success : undefined +} + +/** + * Absorb the driver's failures into `DatabaseError`; whatever else the callback + * failed with passes through. + * + * Defects too: `@effect/sql`'s transaction wrapper `orDie`s a failed COMMIT or + * ROLLBACK (a deferred constraint at commit, a connection that dropped before + * the rollback), so without this the failure would skip contention retry, the + * service's error mapping and the span's `error.type`. + */ +const absorbDriverErrors = (self: Effect.Effect): Effect.Effect, R> => + self.pipe( + // Type arguments pinned: left to inference, TypeScript picks an `orElse` + // success type that leaks `E` into the success channel. + Effect.catchIf, never, DatabaseError, never>( + (error): error is Extract => isMapleDbError(error), + (error) => Effect.fail(toDatabaseError(error)), + ), + // Only a driver defect is caught; any other defect keeps its original Cause, + // and an interrupted call whose ROLLBACK died stays interrupted. + Effect.catchCauseIf( + (cause) => !Cause.hasInterrupts(cause) && driverDefect(cause) !== undefined, + (cause) => Effect.fail(toDatabaseError(driverDefect(cause))), + ), + ) + /** Shared by both entry points below so the two can never describe different origins. */ const DB_SPAN_OPTIONS = { kind: "client", @@ -81,11 +138,11 @@ const DB_SPAN_OPTIONS = { /** * A `Database.execute` span for a call refused before any statement could run. * - * The refusal is decided in Effect, so it fails in Effect — there is no promise - * to throw out of. It still gets a span: a call that reached `Database.execute` - * and was turned away is exactly the thing an operator needs to see, and a - * silent `Effect.fail` would leave the trace looking as though it never - * happened. `db.query.*` is absent on purpose — there is no statement. + * The refusal is decided in Effect, so it fails in Effect. It still gets a + * span: a call that reached `Database.execute` and was turned away is exactly + * the thing an operator needs to see, and a silent `Effect.fail` would leave + * the trace looking as though it never happened. `db.query.*` is absent on + * purpose — there is no statement. */ export const failExecuteWithSpan = Effect.fn( "Database.execute", @@ -100,11 +157,12 @@ export const failExecuteWithSpan = Effect.fn( /** * Wraps one Database.execute call in a Client-kind span per Maple's telemetry * conventions (db.system.name + peer.service power the service-map DB edge; - * db.query.text feeds the query-shapes panel). `run` receives a per-call - * statement collector — wire it to the db client's `onQuery` so every - * parameterized statement (including inside transactions) lands in - * `db.query.text`. The identity attributes live on the span declaration, not - * the success path, so failed calls still produce map edges. + * db.query.text feeds the query-shapes panel). A fresh statement collector is + * provided around `run`, so every parameterized statement the call issues + * (including inside transactions) lands in `db.query.text`, and concurrent + * calls over the same database never cross-attribute. The identity attributes + * live on the span declaration, not the success path, so failed calls still + * produce map edges. * * `"Database.execute"` is only the *placeholder* name: OTel wants a DB client * span named after its query, so once the SQL is known the span is renamed to @@ -115,17 +173,23 @@ export const failExecuteWithSpan = Effect.fn( * for the same origin database, so the two paths don't produce divergent * service-map targets (MAP-01 in the maple-audit skill). * - * There is no connect/query split. postgres.js connects on the first statement, - * so there is no separate connect phase to time — the split previously came from - * a `select 1` probe that cost a round trip on every request purely to produce - * it. What that split was used to infer, `error.type` now states outright: a - * `CONNECT_TIMEOUT` and a constraint violation are different classes, not - * different durations. + * `@effect/sql` opens a span of its own per statement. Those are suppressed + * here: this span already carries the statement text, and the API traces + * itself, so a second span per statement would double the volume of the + * busiest edge in the internal org for nothing new. + * + * There is no connect/query split. The pool dials on the first statement, so + * there is no separate connect phase to time. What that split was used to + * infer, `error.type` states outright: a stalled dial and a constraint + * violation are different classes, not different durations. */ export const executeWithSpan = Effect.fn( "Database.execute", DB_SPAN_OPTIONS, -)(function* (run: (hooks: ExecuteHooks) => Promise, extraAttributes?: Record) { +)(function* ( + run: (hooks: ExecuteHooks) => Effect.Effect, + extraAttributes?: Record, +) { if (extraAttributes) { yield* Effect.annotateCurrentSpan(extraAttributes) } @@ -162,8 +226,8 @@ export const executeWithSpan = Effect.fn( }) // `error.type` is what separates a stalled dial from a constraint violation // once the span lands — the message alone cannot, since `toDatabaseError` - // flattens the driver's code into prose. `db.response.status_code` carries - // SQLSTATE where there is one, per OTel's database conventions. + // flattens the driver's classification into prose. `db.response.status_code` + // carries SQLSTATE where there is one, per OTel's database conventions. const annotateFailure = (error: DatabaseError) => Effect.gen(function* () { const errorType = postgresErrorType(error) @@ -177,14 +241,16 @@ export const executeWithSpan = Effect.fn( yield* Effect.annotateCurrentSpan("db.connect.failed", isPostgresConnectionError(error)) yield* annotate }) - const result = yield* Effect.tryPromise({ - try: () => - run({ - collect: (query) => statements.push(query), - record: (attributes) => Object.assign(recorded, attributes), - }), - catch: toDatabaseError, - }).pipe(Effect.tapError(annotateFailure)) + const result = yield* run({ + record: (attributes) => Object.assign(recorded, attributes), + }).pipe( + Effect.provideService(MapleStatementCollector, (query) => { + statements.push(query) + }), + Effect.withTracerEnabled(false), + absorbDriverErrors, + Effect.tapError((error) => (error instanceof DatabaseError ? annotateFailure(error) : annotate)), + ) yield* annotate if (Array.isArray(result)) { // `db.response.returned_rows` is what the span-detail database panel reads diff --git a/packages/backend/src/platform/DatabasePgLive.test.ts b/packages/backend/src/platform/DatabasePgLive.test.ts index 2acd35551..3400b4b3a 100644 --- a/packages/backend/src/platform/DatabasePgLive.test.ts +++ b/packages/backend/src/platform/DatabasePgLive.test.ts @@ -2,7 +2,7 @@ import { assert, describe, it } from "@effect/vitest" import { sql } from "drizzle-orm" import { Cause, Effect, Exit, Layer, Option, Tracer } from "effect" import { type DatabaseConnection, MapleDbConnection } from "./bindings" -import { Database, type DatabaseClient } from "./DatabaseLive" +import { Database, executeWithSpan } from "./DatabaseLive" import { layerPg } from "./DatabasePgLive" import { PgConnectionScope, type PgConnectionScopeApi } from "./pg-connection-scope" @@ -45,7 +45,7 @@ describe("layerPg", () => { Effect.gen(function* () { const database = yield* databaseFor(Option.none()) - const exit = yield* Effect.exit(database.execute(() => Promise.resolve("unreachable"))) + const exit = yield* Effect.exit(database.execute(() => Effect.succeed("unreachable"))) // Deliberately a per-call failure, not a layer-build failure: dying at // construction would 504 every route including /health, whereas this @@ -60,7 +60,7 @@ describe("layerPg", () => { const { spans, tracer } = makeRecordingTracer() const database = yield* databaseFor(closedPortBinding) - // The callback must issue a statement: the client is lazy, so a callback + // The callback must issue a statement: the pool is lazy, so a callback // that never queries would never reach the closed port and would succeed. const exit = yield* Effect.exit( database.execute((db) => db.execute(sql`select 1`)).pipe(Effect.withTracer(tracer)), @@ -82,17 +82,19 @@ describe("layerPg", () => { it.effect("uses the installed scope instead of dialing", () => Effect.gen(function* () { let calls = 0 + // The binding points at a closed port, so the scope hands over nothing + // and the callback must not touch it. const scope: PgConnectionScopeApi = { - run: (fn: (db: DatabaseClient) => Promise) => { + run: (fn) => { calls += 1 - return Effect.promise(() => fn(undefined as DatabaseClient)) + return executeWithSpan(() => fn(undefined as never)) }, - close: () => Promise.resolve(), + close: Effect.void, } const database = yield* databaseFor(closedPortBinding) const result = yield* database - .execute(() => Promise.resolve("from the scope")) + .execute(() => Effect.succeed("from the scope")) .pipe(Effect.provideService(PgConnectionScope, scope)) // The binding points at a closed port, so a success here can only mean diff --git a/packages/backend/src/platform/DatabasePgLive.ts b/packages/backend/src/platform/DatabasePgLive.ts index 3f59f716e..0da7a8e9c 100644 --- a/packages/backend/src/platform/DatabasePgLive.ts +++ b/packages/backend/src/platform/DatabasePgLive.ts @@ -1,13 +1,14 @@ +import type { MapleDb } from "@maple/db/client" import { Effect, Layer, Option } from "effect" import { MapleDbConnection } from "./bindings" import { Env } from "./Env" -import { Database, type DatabaseClient, DatabaseError, type DatabaseApi } from "./DatabaseLive" +import { Database, DatabaseError, type DatabaseApi } from "./DatabaseLive" import { executeOnFreshPgClient, PgConnectionScope } from "./pg-connection-scope" // Worker TCP sockets are request-bound, so this layer holds only the connection // string and defers the dial to whoever owns the invocation: `PgConnectionScope` -// on the request and cron paths (one socket, reused by every execute), else a -// dial per execute. +// on the request and cron paths (one pool, reused by every execute), else a +// pool per execute. const makePgDatabase = Effect.gen(function* () { const connection = yield* MapleDbConnection @@ -26,7 +27,7 @@ const makePgDatabase = Effect.gen(function* () { const { connectionString, attributes } = connection.value return Database.of({ - execute: (fn: (db: DatabaseClient) => Promise) => + execute: (fn: (db: MapleDb) => Effect.Effect) => Effect.flatMap(PgConnectionScope, (scope) => scope === undefined ? executeOnFreshPgClient(connectionString, fn, attributes) diff --git a/packages/backend/src/platform/DatabasePgliteLive.ts b/packages/backend/src/platform/DatabasePgliteLive.ts index af076671b..dcf5e793d 100644 --- a/packages/backend/src/platform/DatabasePgliteLive.ts +++ b/packages/backend/src/platform/DatabasePgliteLive.ts @@ -1,36 +1,36 @@ -import { PGlite } from "@electric-sql/pglite" -import { createMaplePgliteClient } from "@maple/db/pglite" -import { Database, type DatabaseClient, type DatabaseApi, executeWithSpan } from "./DatabaseLive" +import type { PGliteInterface } from "@electric-sql/pglite" +import type { MapleDb } from "@maple/db/client" +import { makeMaplePgliteDb } from "@maple/db/pglite" +import { Effect, type Scope } from "effect" +import type { SqlError } from "effect/unstable/sql/SqlError" +import { Database, type DatabaseApi, executeWithSpan } from "./DatabaseLive" /** `db.namespace` for the embedded Postgres used by vitest / local entrypoints. */ export const PGLITE_DB_NAMESPACE = "pglite" /** * Wrap an already-migrated PGlite instance as the Database service (no - * migration). The test harness pre-migrates via a cached SQL exec and uses + * migration). The test harness pre-migrates via a cached snapshot and uses * this directly. * - * The drizzle wrapper is created per `execute` call so each call's `onQuery` - * statement collector is isolated — a shared client + collector would - * misattribute statements between concurrent executes. The per-call wrapper - * only re-derives drizzle's relational config (PGlite still serializes the - * actual queries), and this layer is vitest/local-only. + * One drizzle database per instance: statement capture is a fiber reference + * provided per `execute`, so concurrent calls over the shared database never + * cross-attribute. This layer is vitest/local-only. */ -export const databaseFromInstance = (pglite: PGlite): DatabaseApi => - Database.of({ - execute: (fn: (db: DatabaseClient) => Promise) => - executeWithSpan( - (hooks) => - fn( - // SAFETY: this test-only PGlite client implements the query surface used through DatabaseClient. - createMaplePgliteClient(pglite, { - onQuery: hooks.collect, - }) as unknown as DatabaseClient, - ), - // Without a namespace these spans collapse into the per-system - // generic node. There is no server to address — PGlite is in-process — - // so name the engine rather than a host, which also keeps local and - // deployed traffic on visibly distinct nodes. - { "db.namespace": PGLITE_DB_NAMESPACE }, - ), - } satisfies DatabaseApi) +export const makeDatabaseFromInstance = ( + pglite: PGliteInterface, +): Effect.Effect => + Effect.map(makeMaplePgliteDb(pglite), (pgliteDb) => { + const db: MapleDb = pgliteDb + return Database.of({ + execute: (fn) => + executeWithSpan( + () => fn(db), + // Without a namespace these spans collapse into the per-system + // generic node. There is no server to address — PGlite is in-process — + // so name the engine rather than a host, which also keeps local and + // deployed traffic on visibly distinct nodes. + { "db.namespace": PGLITE_DB_NAMESPACE }, + ), + } satisfies DatabaseApi) + }) diff --git a/packages/backend/src/platform/db-execute.test.ts b/packages/backend/src/platform/db-execute.test.ts index 576a8a47e..854d73703 100644 --- a/packages/backend/src/platform/db-execute.test.ts +++ b/packages/backend/src/platform/db-execute.test.ts @@ -1,8 +1,7 @@ import { assert, describe, it } from "@effect/vitest" -import { Schema } from "effect" -import { Effect, Exit } from "effect" +import { Effect, Exit, Schema } from "effect" import { makeDbExecute, makePersistenceErrorMapper } from "./db-execute" -import { DatabaseError, type DatabaseClient, type DatabaseApi } from "./DatabaseLive" +import { DatabaseError, type DatabaseApi, executeWithSpan } from "./DatabaseLive" class TestPersistenceError extends Schema.TaggedError()( "@maple/api/test/TestPersistenceError", @@ -12,6 +11,10 @@ class TestPersistenceError extends Schema.TaggedError()( }, ) {} +class TestDomainError extends Schema.TaggedError()("@maple/api/test/TestDomainError", { + message: Schema.String, +}) {} + const toTestError = makePersistenceErrorMapper(TestPersistenceError, "Test persistence failure") /** @@ -21,22 +24,27 @@ const toTestError = makePersistenceErrorMapper(TestPersistenceError, "Test persi const failingDatabase = (error: DatabaseError) => { const attempts = { count: 0 } const database: DatabaseApi = { - execute: (_fn: (db: DatabaseClient) => Promise) => + execute: () => Effect.sync(() => { attempts.count += 1 - }).pipe(Effect.flatMap(() => Effect.fail(error))) as Effect.Effect, + }).pipe(Effect.flatMap(() => Effect.fail(error))), } return { database, attempts } } +/** A `Database` whose callback runs against nothing — for what the callback itself fails with. */ +const passthroughDatabase: DatabaseApi = { + execute: (fn) => executeWithSpan(() => fn(undefined as never)), +} + const contentionError = new DatabaseError({ message: "could not serialize access due to concurrent update", cause: { code: "40001" }, }) const connectionError = new DatabaseError({ - message: "write CONNECT_TIMEOUT 10.0.0.1:5432", - cause: { code: "CONNECT_TIMEOUT" }, + message: "connect ECONNREFUSED 10.0.0.1:5432", + cause: { code: "ECONNREFUSED" }, }) describe("makeDbExecute", () => { @@ -47,7 +55,7 @@ describe("makeDbExecute", () => { // Real time: the schedule is exponential from 50ms capped at 3 // recurrences, so the whole replay costs ~350ms. - const exit = yield* Effect.exit(dbExecute(() => Promise.resolve("unused"))) + const exit = yield* Effect.exit(dbExecute(() => Effect.succeed("unused"))) assert.isTrue(Exit.isFailure(exit)) assert.strictEqual(attempts.count, 4) @@ -59,7 +67,7 @@ describe("makeDbExecute", () => { const { database, attempts } = failingDatabase(connectionError) const dbExecute = makeDbExecute(database, "TestService", toTestError) - yield* Effect.exit(dbExecute(() => Promise.resolve("unused"))) + yield* Effect.exit(dbExecute(() => Effect.succeed("unused"))) assert.strictEqual(attempts.count, 1) }), @@ -70,11 +78,30 @@ describe("makeDbExecute", () => { const { database } = failingDatabase(connectionError) const dbExecute = makeDbExecute(database, "TestService", toTestError) - const exit = yield* Effect.exit(dbExecute(() => Promise.resolve("unused"))) + const error = yield* Effect.flip(dbExecute(() => Effect.succeed("unused"))) - assert.isTrue(Exit.isFailure(exit)) - const failure = Exit.isFailure(exit) ? exit.cause : undefined - assert.isDefined(failure) + assert.strictEqual(error._tag, "@maple/api/test/TestPersistenceError") + }), + ) + + it.effect("passes the callback's own failure through unmapped and unreplayed", () => + Effect.gen(function* () { + const dbExecute = makeDbExecute(passthroughDatabase, "TestService", toTestError) + let attempts = 0 + + const error = yield* Effect.flip( + dbExecute(() => + Effect.suspend(() => { + attempts += 1 + return Effect.fail(new TestDomainError({ message: "rolled back on purpose" })) + }), + ), + ) + + // A domain error raised inside a transaction is the caller's, not the + // database's: no retry, no persistence-error disguise. + assert.strictEqual(error._tag, "@maple/api/test/TestDomainError") + assert.strictEqual(attempts, 1) }), ) }) diff --git a/packages/backend/src/platform/db-execute.ts b/packages/backend/src/platform/db-execute.ts index 51ef42288..b253fe419 100644 --- a/packages/backend/src/platform/db-execute.ts +++ b/packages/backend/src/platform/db-execute.ts @@ -7,9 +7,10 @@ * one implementation here is what stops the fifteen copies this replaced from * drifting into fifteen different contracts again. */ +import type { MapleDb } from "@maple/db/client" import { Effect, Schedule } from "effect" import { describeCause } from "./describe-cause" -import type { DatabaseClient, DatabaseError, DatabaseApi } from "./DatabaseLive" +import { DatabaseError, type DatabaseApi } from "./DatabaseLive" import { isRetryablePostgresContention } from "./postgres-errors" /** Contention (SQLSTATE 40001/40P01) is safe to replay as a fresh attempt. */ @@ -22,9 +23,11 @@ const CONTENTION_RETRY_SCHEDULE = Schedule.max([Schedule.exponential("50 millis" type PersistenceErrorConstructor = new (fields: { readonly message: string; readonly cause?: string }) => E /** - * Build the `unknown -> E` mapper each service used to hand-roll: the thrown + * Build the `unknown -> E` mapper each service used to hand-roll: the error's * message when there is one, the flattened nested cause when there is one, and - * `fallbackMessage` for a non-`Error` rejection that carries neither. + * `fallbackMessage` for a non-`Error` value that carries neither. `unknown` + * because callers also fold their own typed failures (a lost claim, a missing + * row) into the same persistence error, not only `DatabaseError`. */ export const makePersistenceErrorMapper = (Ctor: PersistenceErrorConstructor, fallbackMessage: string) => @@ -41,32 +44,42 @@ export const makePersistenceErrorMapper = * Wrap a service's database access: contention retry, one structured error log * naming the service and the failing operation, then the service's own error. * + * Only the `DatabaseError` half is retried, logged and remapped. Whatever the + * callback failed with on its own — a domain error raised inside a transaction + * to roll it back — passes through untouched, which is the point of the typed + * channel replacing `throw`. + * * `service` only labels the logs — the operation name comes from the ambient * span, so a service method already wrapped in `Effect.fn` needs no extra * plumbing to say which query failed. */ export const makeDbExecute = (database: DatabaseApi, service: string, mapError: (error: DatabaseError) => E) => - (fn: (db: DatabaseClient) => Promise): Effect.Effect => + (fn: (db: MapleDb) => Effect.Effect) => database.execute(fn).pipe( Effect.retry({ schedule: CONTENTION_RETRY_SCHEDULE, - while: isRetryablePostgresContention, + while: (error) => error instanceof DatabaseError && isRetryablePostgresContention(error), }), Effect.tapError((error) => - Effect.gen(function* () { - // Service methods run inside an Effect.fn span — its name says which - // operation's query failed without threading a label through. - const span = yield* Effect.currentSpan.pipe(Effect.orElseSucceed(() => null)) - yield* Effect.logError(`${service} dbExecute failed`).pipe( - Effect.annotateLogs({ - service, - operation: span?.name ?? "(unknown)", - message: error.message, - cause: describeCause(error.cause) ?? "(none)", - }), - ) - }), + error instanceof DatabaseError + ? Effect.gen(function* () { + // Service methods run inside an Effect.fn span — its name says which + // operation's query failed without threading a label through. + const span = yield* Effect.currentSpan.pipe(Effect.orElseSucceed(() => null)) + yield* Effect.logError(`${service} dbExecute failed`).pipe( + Effect.annotateLogs({ + service, + operation: span?.name ?? "(unknown)", + message: error.message, + cause: describeCause(error.cause) ?? "(none)", + }), + ) + }) + : Effect.void, + ), + Effect.catchIf( + (error): error is DatabaseError => error instanceof DatabaseError, + (error) => Effect.fail(mapError(error)), ), - Effect.mapError(mapError), ) diff --git a/packages/backend/src/platform/distinct-org-ids.test.ts b/packages/backend/src/platform/distinct-org-ids.test.ts index c76f2ec64..3f07a98d3 100644 --- a/packages/backend/src/platform/distinct-org-ids.test.ts +++ b/packages/backend/src/platform/distinct-org-ids.test.ts @@ -78,26 +78,28 @@ describe("selectDistinctOrgIds", () => { const db = createTestDb(createdDbs) const database = yield* Database.pipe(Effect.provide(db.layer)) - yield* database.execute(async (client) => { - await client.insert(errorIssueStates).values([ - { orgId: asOrgId("org_b"), issueId: asIssueId(randomUUID()), updatedAt: new Date(0) }, - { orgId: asOrgId("org_b"), issueId: asIssueId(randomUUID()), updatedAt: new Date(0) }, - { orgId: asOrgId("org_a"), issueId: asIssueId(randomUUID()), updatedAt: new Date(0) }, - ]) - await client.insert(orgClickHouseSettings).values( - ["org_z", "org_y"].map((orgId) => ({ - orgId, - chUrl: "https://ch.example", - chUser: "default", - chDatabase: "maple", - syncStatus: "connected", - createdAt: new Date(0), - updatedAt: new Date(0), - createdBy: "test", - updatedBy: "test", - })), - ) - }) + yield* database.execute((client) => + Effect.gen(function* () { + yield* client.insert(errorIssueStates).values([ + { orgId: asOrgId("org_b"), issueId: asIssueId(randomUUID()), updatedAt: new Date(0) }, + { orgId: asOrgId("org_b"), issueId: asIssueId(randomUUID()), updatedAt: new Date(0) }, + { orgId: asOrgId("org_a"), issueId: asIssueId(randomUUID()), updatedAt: new Date(0) }, + ]) + yield* client.insert(orgClickHouseSettings).values( + ["org_z", "org_y"].map((orgId) => ({ + orgId, + chUrl: "https://ch.example", + chUser: "default", + chDatabase: "maple", + syncStatus: "connected", + createdAt: new Date(0), + updatedAt: new Date(0), + createdBy: "test", + updatedBy: "test", + })), + ) + }), + ) const states = yield* database.execute((client) => selectDistinctOrgIds(client, errorIssueStates, errorIssueStates.orgId), diff --git a/packages/backend/src/platform/distinct-org-ids.ts b/packages/backend/src/platform/distinct-org-ids.ts index fbd890e24..c6bc9ac27 100644 --- a/packages/backend/src/platform/distinct-org-ids.ts +++ b/packages/backend/src/platform/distinct-org-ids.ts @@ -1,8 +1,9 @@ import { OrgId, type OrgId as OrgIdType } from "@maple/domain" import { sql } from "drizzle-orm" -import { Schema } from "effect" +import type { MapleDbLike } from "@maple/db/client" +import type { EffectDrizzleQueryError } from "drizzle-orm/effect-core" import type { PgColumn, PgTable } from "drizzle-orm/pg-core" -import type { DatabaseClient } from "./DatabaseLive" +import { Effect, Schema } from "effect" /** * `SELECT DISTINCT org_id FROM ` via a loose index scan. @@ -20,12 +21,13 @@ import type { DatabaseClient } from "./DatabaseLive" * * Pattern: https://wiki.postgresql.org/wiki/Loose_indexscan */ -export const selectDistinctOrgIds = async ( - db: DatabaseClient, +export const selectDistinctOrgIds = ( + db: MapleDbLike, table: PgTable, column: PgColumn, -): Promise> => { - const result = await db.execute(sql` +): Effect.Effect, EffectDrizzleQueryError> => + Effect.map( + db.execute(sql` with recursive t as ( ( select ${column} as org_id @@ -46,15 +48,14 @@ export const selectDistinctOrgIds = async ( where t.org_id is not null ) select org_id from t where org_id is not null - `) - return toOrgIds(result) -} + `), + toOrgIds, + ) /** - * `db.execute` hands back driver-shaped results: postgres.js yields a row array, - * PGlite yields `{ rows }`. `MaplePgClient` is typed as the postgres.js - * client and the PGlite layer casts into it, so the declared array type is a lie - * under test — normalize both shapes instead of trusting it. + * `db.execute` hands back the driver's own result object under the Effect + * drivers (`{ rows, … }` from both node-postgres and PGlite) although drizzle + * declares a row array — normalize both shapes instead of trusting the type. */ const decodeOrgIdSync = Schema.decodeUnknownSync(OrgId) diff --git a/packages/backend/src/platform/fork-request-scoped.test.ts b/packages/backend/src/platform/fork-request-scoped.test.ts index 949679e2a..7a152b62d 100644 --- a/packages/backend/src/platform/fork-request-scoped.test.ts +++ b/packages/backend/src/platform/fork-request-scoped.test.ts @@ -1,7 +1,9 @@ import { assert, describe, it } from "@effect/vitest" import { Effect, Fiber } from "effect" import { forkRequestScoped } from "./fork-request-scoped" +import { createMaplePgPool } from "@maple/db/client" import { + makePgConnectionScope, PgConnectionScope, type PgConnectionScopeApi, PgConnectionScopeClosedError, @@ -18,7 +20,7 @@ const refusingScope = () => { let closed = false let runs = 0 const scope: PgConnectionScopeApi = { - run: (fn: (db: never) => Promise) => + run: (fn) => Effect.suspend(() => { if (closed) { return Effect.fail( @@ -26,28 +28,70 @@ const refusingScope = () => { ) } runs += 1 - return Effect.promise(() => fn(undefined as never)) + return fn(undefined as never) }), - close: async () => { + close: Effect.sync(() => { closed = true - }, + }), } return { scope, runs: () => runs } } const dbCall = Effect.gen(function* () { const scope = yield* PgConnectionScope - return yield* scope!.run(() => Promise.resolve("touched")) + return yield* scope!.run(() => Effect.succeed("touched")) }) describe("forkRequestScoped", () => { - // Mirrors the production nesting: `HttpEffect.toHandled` creates the request - // Scope OUTSIDE the middleware stack, so it outlives `pgConnectionMiddleware`. + it.live("lets a DB call already under way finish when the request ends", () => + Effect.gen(function* () { + let finished = false + const scope: PgConnectionScopeApi = makePgConnectionScope("postgres://unused", undefined, { + openPool: (options) => createMaplePgPool("postgres://maple:maple@127.0.0.1:1/never", options), + }) + + yield* withPgConnectionScopeOf( + scope, + Effect.scoped( + forkRequestScoped( + Effect.gen(function* () { + const current = yield* PgConnectionScope + // Stands in for a statement waiting on a pool checkout. + yield* current!.run(() => + Effect.sleep("30 millis").pipe( + Effect.tap(() => Effect.sync(() => (finished = true))), + ), + ) + }), + ), + ), + ) + + assert.isTrue(finished) + }), + ) + + it.live("still interrupts forked work that has not reached the database", () => + Effect.gen(function* () { + const { scope, runs } = refusingScope() + const startedAt = Date.now() + + yield* withPgConnectionScopeOf( + scope, + Effect.scoped(forkRequestScoped(Effect.sleep("5 seconds").pipe(Effect.andThen(dbCall)))), + ) + + // The response is not held for work that is not yet a DB call. + assert.isBelow(Date.now() - startedAt, 1000) + assert.strictEqual(runs(), 0) + }), + ) + // A handler that forks and then finishes with no further async work must - // still get its background DB call onto the socket before the middleware's - // `ensuring` releases it — this is the shape `ApiKeysService.touchLastUsed` had - // on `POST /mcp` (it is awaited inline now), which used to land every call - // as `SCOPE_CLOSED`. + // still get its background DB call in before the connection scope closes — + // the shape `ApiKeysService.touchLastUsed` had on `POST /mcp` (it is awaited + // inline now), which used to land every call as `SCOPE_CLOSED`. The real + // pool's checkout timing is covered by the Postgres integration suite. it.effect("runs the forked DB call before the connection scope closes", () => Effect.scoped( Effect.gen(function* () { diff --git a/packages/backend/src/platform/fork-request-scoped.ts b/packages/backend/src/platform/fork-request-scoped.ts index 9d1362119..4be79bfdd 100644 --- a/packages/backend/src/platform/fork-request-scoped.ts +++ b/packages/backend/src/platform/fork-request-scoped.ts @@ -1,38 +1,40 @@ import { Effect, Option, Scope } from "effect" +import { DrainRunOnInterrupt } from "./pg-connection-scope" /** * Fork background work so it cannot outlive the invocation that owns the - * Postgres socket. + * Postgres connection. * * `Effect.forkDetach` is the wrong tool for anything that touches the database. * A detached fiber inherits the `PgConnectionScope` reference from the request * context but not the request's lifetime, so it can still be running when - * `withPgConnectionScopeOf`'s `Effect.ensuring` closes the socket. The next - * `execute` then finds no socket and dials a new one *after the request has - * ended*, which a Worker cannot do — and because these call sites are - * `Effect.ignore`d, the failure is silent. + * `withPgConnectionScopeOf`'s `Effect.ensuring` closes the pool, and its next + * `execute` is refused as `SCOPE_CLOSED` — silently, because these call sites + * are `Effect.ignore`d. * - * HTTP routes always have a request `Scope` (HttpRouter provides one). Non-HTTP - * callers — crons, queue consumers, workflows — do not, and there the calling - * fiber IS the whole job, so it is a safe parent. + * HTTP routes always have a request `Scope` (HttpRouter provides one), and on + * the API worker it closes INSIDE `withPgConnectionScope`: the router that + * creates it is the program the connection scope wraps. Closing it interrupts + * the child, so forked work gets until the response and no longer. Non-HTTP + * callers — crons, queue consumers, workflows — have no request Scope, and + * there the calling fiber IS the whole job, so it is a safe parent. * - * `startImmediately` is load-bearing. The request `Scope` is created by - * `HttpEffect.toHandled` OUTSIDE the middleware stack, so it closes AFTER - * `pgConnectionMiddleware` has already released the socket — it does not - * bound the fork the way the paragraph above assumes. A fork that is merely - * *scheduled* (the default) never runs before the parent has sent the response - * and `PgConnectionScope.close()` has flipped the scope to `Closed`; the - * child then wakes to a `SCOPE_CLOSED` refusal, which is exactly what - * `ApiKeysService.touchLastUsed` produced on every `POST /mcp` whose handler - * had no further async work. Starting the child synchronously lets it reach - * its first DB call — and take the socket — while the scope is still `Open`; - * `close()` then drains that in-flight statement (`sql.end()` waits) instead - * of refusing it. + * Two things keep a quick DB call that was forked right before the response + * from being lost: + * + * - `startImmediately`: a merely scheduled fork would not run before the + * handler returned, and would wake to an interruption. + * - `DrainRunOnInterrupt`: once the child is inside a `Database.execute`, the + * interruption waits for that call. node-postgres checks a client out on a + * later tick, so without this the statement is still queued when the + * interruption lands and never runs. Work before the DB call (an HTTP probe, + * a cache read) is still interrupted at the response. */ export const forkRequestScoped = (work: Effect.Effect) => Effect.gen(function* () { const scope = yield* Effect.serviceOption(Scope.Scope) + const draining = work.pipe(Effect.provideService(DrainRunOnInterrupt, true)) return Option.isSome(scope) - ? yield* Effect.forkIn(work, scope.value, { startImmediately: true }) - : yield* Effect.forkChild(work, { startImmediately: true }) + ? yield* Effect.forkIn(draining, scope.value, { startImmediately: true }) + : yield* Effect.forkChild(draining, { startImmediately: true }) }) diff --git a/packages/backend/src/platform/pg-connection-scope.test.ts b/packages/backend/src/platform/pg-connection-scope.test.ts index 98eaa0da4..5a6a58ba1 100644 --- a/packages/backend/src/platform/pg-connection-scope.test.ts +++ b/packages/backend/src/platform/pg-connection-scope.test.ts @@ -1,8 +1,9 @@ import { assert, describe, it } from "@effect/vitest" -import { createMaplePgSocket, type MaplePgSocketHandle, type MaplePgSocketOptions } from "@maple/db/client" -import { Effect, Exit, Fiber, Option, Tracer } from "effect" +import { createMaplePgPool, type MapleDb, type MaplePgPool, type MaplePgPoolOptions } from "@maple/db/client" +import { sql } from "drizzle-orm" +import { Effect, Exit, Fiber, Option, References, Schema, Tracer } from "effect" +import { createServer, type Socket } from "node:net" import { MapleDbConnection } from "./bindings" -import type { DatabaseClient } from "./DatabaseLive" import { executeOnFreshPgClient, makePgConnectionScope, @@ -15,52 +16,53 @@ import { } from "./pg-connection-scope" /** - * A client that never touches the network. + * A pool that never touches the network. * - * `sql` is a real postgres.js client because `wrapMaplePgClient` builds drizzle - * over it — constructing one connects to nothing (postgres.js connects lazily on - * the first statement), and these tests never issue one, so the port below is - * never reached. + * A real node-postgres pool, because the drizzle database is built over it — + * constructing one connects to nothing (the pool dials on the first statement), + * and these tests never issue one, so the port below is never reached. */ -const fakeSocket = (onEnd: () => void): MaplePgSocketHandle => { - const real = createMaplePgSocket("postgres://maple:maple@127.0.0.1:1/never", { - maxConnections: 1, - }) - return { - sql: real.sql, - end: async () => { - onEnd() - await real.end().catch(() => undefined) - }, +const fakePool = (onEnd: () => void): MaplePgPool => { + const pool = createMaplePgPool("postgres://maple:maple@127.0.0.1:1/never", { maxConnections: 1 }) + const end = pool.end.bind(pool) + pool.end = () => { + onEnd() + return end() } + return pool } interface Recorder { - readonly openSocket: (options: MaplePgSocketOptions) => MaplePgSocketHandle + readonly openPool: (options: MaplePgPoolOptions) => MaplePgPool readonly creations: () => number readonly ends: () => number - readonly lastOptions: () => MaplePgSocketOptions | undefined + readonly lastOptions: () => MaplePgPoolOptions | undefined } const recorder = (): Recorder => { let creations = 0 let ends = 0 - let lastOptions: MaplePgSocketOptions | undefined + let lastOptions: MaplePgPoolOptions | undefined return { creations: () => creations, ends: () => ends, lastOptions: () => lastOptions, - openSocket: (options) => { + openPool: (options) => { creations += 1 lastOptions = options - return fakeSocket(() => { + return fakePool(() => { ends += 1 }) }, } } -const noop = () => Promise.resolve("ok") +const noop = () => Effect.succeed("ok") + +class CallbackFailure extends Schema.TaggedError()("@maple/test/CallbackFailure", { + message: Schema.String, +}) {} +const boom = () => Effect.fail(new CallbackFailure({ message: "boom" })) const makeRecordingTracer = () => { const spans: Array = [] @@ -78,11 +80,11 @@ const dbSpans = (spans: ReadonlyArray) => spans.filter((span) => span.attributes.get("db.system.name") === "postgresql") describe("PgConnectionScope", () => { - it.effect("creates one client and reuses it across every execute", () => + it.effect("creates one pool and reuses it across every execute", () => Effect.gen(function* () { const rec = recorder() const scope = makePgConnectionScope("postgres://unused", undefined, { - openSocket: rec.openSocket, + openPool: rec.openPool, }) yield* scope.run(noop) @@ -91,7 +93,7 @@ describe("PgConnectionScope", () => { // The whole point: these used to be three connections. assert.strictEqual(rec.creations(), 1) - yield* Effect.promise(() => scope.close()) + yield* scope.close assert.strictEqual(rec.ends(), 1) }), ) @@ -100,36 +102,36 @@ describe("PgConnectionScope", () => { Effect.gen(function* () { const rec = recorder() const scope = makePgConnectionScope("postgres://unused", undefined, { - openSocket: rec.openSocket, + openPool: rec.openPool, }) - yield* Effect.promise(() => scope.close()) + yield* scope.close assert.strictEqual(rec.creations(), 0) assert.strictEqual(rec.ends(), 0) }), ) - it.effect("gives each execute its own drizzle client so statements cannot cross-attribute", () => + it.effect("shares one database across executes; statement capture is per call", () => Effect.gen(function* () { const rec = recorder() const scope = makePgConnectionScope("postgres://unused", undefined, { - openSocket: rec.openSocket, + openPool: rec.openPool, }) - const clients: Array = [] - const capture = (db: DatabaseClient) => { + const clients: Array = [] + const capture = (db: MapleDb) => { clients.push(db) - return Promise.resolve("ok") + return Effect.succeed("ok") } yield* Effect.all([scope.run(capture), scope.run(capture)], { concurrency: 2 }) - // One client, two wrappers. A shared wrapper would share drizzle's logger - // and put both calls' SQL on whichever span looked last. + // One pool, one database. The per-call statement collector is a fiber + // reference, so sharing the database cannot cross-attribute SQL. assert.strictEqual(rec.creations(), 1) assert.strictEqual(clients.length, 2) - assert.notStrictEqual(clients[0], clients[1]) - yield* Effect.promise(() => scope.close()) + assert.strictEqual(clients[0], clients[1]) + yield* scope.close }), ) @@ -138,7 +140,7 @@ describe("PgConnectionScope", () => { const rec = recorder() const { spans, tracer } = makeRecordingTracer() const scope = makePgConnectionScope("postgres://unused", undefined, { - openSocket: rec.openSocket, + openPool: rec.openPool, }) yield* scope.run(noop).pipe(Effect.withTracer(tracer)) @@ -149,7 +151,7 @@ describe("PgConnectionScope", () => { assert.isDefined(second) assert.strictEqual(first.attributes.get("db.connect.reused"), false) assert.strictEqual(second.attributes.get("db.connect.reused"), true) - yield* Effect.promise(() => scope.close()) + yield* scope.close }), ) @@ -160,7 +162,7 @@ describe("PgConnectionScope", () => { const scope = makePgConnectionScope( "postgres://unused", { "db.namespace": "maple", "server.address": "cfg.hyperdrive.local" }, - { openSocket: rec.openSocket }, + { openPool: rec.openPool }, ) yield* scope.run(noop).pipe(Effect.withTracer(tracer)) @@ -169,33 +171,26 @@ describe("PgConnectionScope", () => { assert.isDefined(span) assert.strictEqual(span.attributes.get("db.namespace"), "maple") assert.strictEqual(span.attributes.get("server.address"), "cfg.hyperdrive.local") - yield* Effect.promise(() => scope.close()) + yield* scope.close }), ) - it.effect("surfaces a failing statement without swallowing it", () => + it.effect("surfaces a failing call without swallowing it", () => Effect.gen(function* () { const rec = recorder() const scope = makePgConnectionScope("postgres://unused", undefined, { - openSocket: rec.openSocket, + openPool: rec.openPool, }) // With no probe there is no separate connect phase: a connection problem // arrives as the statement's own error, which is what `postgres-errors` - // classifies. - const exit = yield* Effect.exit( - scope.run(() => - Promise.reject( - Object.assign(new Error("write CONNECT_TIMEOUT"), { - code: "CONNECT_TIMEOUT", - }), - ), - ), - ) + // classifies. Here the callback itself fails; the pool was still opened + // for it. + const exit = yield* Effect.exit(scope.run(boom)) assert.isTrue(Exit.isFailure(exit)) assert.strictEqual(rec.creations(), 1) - yield* Effect.promise(() => scope.close()) + yield* scope.close }), ) @@ -203,7 +198,7 @@ describe("PgConnectionScope", () => { Effect.gen(function* () { const rec = recorder() const scope = makePgConnectionScope("postgres://unused", undefined, { - openSocket: rec.openSocket, + openPool: rec.openPool, }) yield* scope.run(noop) @@ -212,7 +207,7 @@ describe("PgConnectionScope", () => { // behind a single connection — `SELECT actors` p50 928ms -> 5687ms at flat // volume. `max` is a ceiling, not a reservation. assert.strictEqual(rec.lastOptions()?.maxConnections, 5) - yield* Effect.promise(() => scope.close()) + yield* scope.close }), ) @@ -220,18 +215,17 @@ describe("PgConnectionScope", () => { Effect.gen(function* () { const rec = recorder() const scope = makePgConnectionScope("postgres://unused", undefined, { - openSocket: rec.openSocket, + openPool: rec.openPool, }) yield* scope.run(noop) - // postgres.js only raises CONNECT_TIMEOUT from connectTimedOut(), and its - // timer() is a no-op when the option is absent — unset, a stalled dial - // hangs for the whole invocation and lands with no error.type at all. + // Unset, a stalled dial hangs for the whole invocation and lands with no + // error.type at all. const connectTimeoutSeconds = rec.lastOptions()?.connectTimeoutSeconds assert.isDefined(connectTimeoutSeconds) assert.isAbove(connectTimeoutSeconds, 0) - yield* Effect.promise(() => scope.close()) + yield* scope.close }), ) @@ -239,12 +233,12 @@ describe("PgConnectionScope", () => { Effect.gen(function* () { const rec = recorder() const scope = makePgConnectionScope("postgres://unused", undefined, { - openSocket: rec.openSocket, + openPool: rec.openPool, }) yield* scope.run(noop) - yield* Effect.promise(() => scope.close()) - yield* Effect.promise(() => scope.close()) + yield* scope.close + yield* scope.close assert.strictEqual(rec.creations(), 1) assert.strictEqual(rec.ends(), 1) @@ -256,11 +250,11 @@ describe("PgConnectionScope", () => { const rec = recorder() const { spans, tracer } = makeRecordingTracer() const scope = makePgConnectionScope("postgres://unused", undefined, { - openSocket: rec.openSocket, + openPool: rec.openPool, }) yield* scope.run(noop) - yield* Effect.promise(() => scope.close()) + yield* scope.close // The bug this replaces: `close` set the handle back to `undefined`, which // is also what "never dialed" looked like, so this call opened a second @@ -284,10 +278,10 @@ describe("PgConnectionScope", () => { it.effect("keeps the closed-scope failure discriminable behind the DatabaseError channel", () => Effect.gen(function* () { const scope = makePgConnectionScope("postgres://unused", undefined, { - openSocket: recorder().openSocket, + openPool: recorder().openPool, }) - yield* Effect.promise(() => scope.close()) + yield* scope.close const error = yield* Effect.flip(scope.run(noop)) // `run` stays typed as DatabaseError — ~200 call sites depend on that — @@ -301,10 +295,10 @@ describe("PgConnectionScope", () => { Effect.gen(function* () { const rec = recorder() const scope = makePgConnectionScope("postgres://unused", undefined, { - openSocket: rec.openSocket, + openPool: rec.openPool, }) - yield* Effect.promise(() => scope.close()) + yield* scope.close const exit = yield* Effect.exit(scope.run(noop)) assert.isTrue(Exit.isFailure(exit)) @@ -316,14 +310,14 @@ describe("PgConnectionScope", () => { Effect.gen(function* () { const rec = recorder() const scope = makePgConnectionScope("postgres://unused", undefined, { - openSocket: rec.openSocket, + openPool: rec.openPool, }) // Close transitions to Closed before releasing, so a caller racing the - // teardown is refused rather than handed a socket being ended underneath it. - const running = yield* Effect.forkChild(scope.run(() => new Promise(() => {}))) + // teardown is refused rather than handed a pool being ended underneath it. + const running = yield* Effect.forkChild(scope.run(() => Effect.never)) yield* Effect.yieldNow - yield* Effect.promise(() => scope.close()) + yield* scope.close yield* Fiber.interrupt(running) const exit = yield* Effect.exit(scope.run(noop)) @@ -333,13 +327,123 @@ describe("PgConnectionScope", () => { assert.strictEqual(rec.ends(), 1) }), ) + + it.live("labels a call refused by a close that landed while it waited for the gate", () => + Effect.gen(function* () { + // The window: `run` passes its synchronous Closed check while the scope is + // Cold, yields before taking the gate, and `close` gets there first. A + // small scheduler op budget forces that interleaving deterministically; + // the sweep keeps the test independent of how many ops each step costs. + // It starts at 3: at 1 or 2 even a bare `Effect.forEach` never completes. + let raced = 0 + for (let budget = 3; budget <= 48; budget++) { + const { spans, tracer } = makeRecordingTracer() + const scope = makePgConnectionScope("postgres://unused", undefined, { + openPool: recorder().openPool, + }) + const running = yield* Effect.forkChild( + scope + .run(noop) + .pipe( + Effect.withTracer(tracer), + Effect.provideService(References.MaxOpsBeforeYield, budget), + ), + ) + const closing = yield* Effect.forkChild(scope.close) + const exit = yield* Fiber.await(running) + yield* Fiber.join(closing) + + const [span] = dbSpans(spans) + // `db.connect.reused` is recorded only past the synchronous check. + if (!Exit.isFailure(exit) || span?.attributes.get("db.connect.reused") === undefined) continue + raced += 1 + assert.strictEqual(span.attributes.get("error.type"), "SCOPE_CLOSED", `budget ${budget}`) + assert.strictEqual( + span.attributes.get("db.connect.scope_state"), + "closed", + `budget ${budget}`, + ) + } + assert.isAbove(raced, 0, "no op budget reproduced the close-while-waiting interleaving") + }), + ) +}) + +/** + * A local TCP server standing in for a Hyperdrive origin that misbehaves: + * `stall` accepts and never answers the startup message, `hangup` accepts and + * drops the socket. node-postgres reports both with no `code`, which is the + * shape `@effect/sql-pg` classifies as `UnknownError`. + */ +const misbehavingServer = (behaviour: "stall" | "hangup") => + Effect.acquireRelease( + Effect.callback<{ readonly url: string; readonly close: () => void }>((resume) => { + const sockets = new Set() + const server = createServer((socket) => { + sockets.add(socket) + if (behaviour === "hangup") socket.once("data", () => socket.destroy()) + }) + server.listen(0, "127.0.0.1", () => { + const address = server.address() + const port = typeof address === "object" && address !== null ? address.port : 0 + resume( + Effect.succeed({ + url: `postgres://maple:maple@127.0.0.1:${port}/maple`, + close: () => { + for (const socket of sockets) socket.destroy() + server.close() + }, + }), + ) + }) + }), + (server) => Effect.sync(server.close), + ) + +const failedDbSpan = (behaviour: "stall" | "hangup") => + Effect.gen(function* () { + const server = yield* misbehavingServer(behaviour) + const { spans, tracer } = makeRecordingTracer() + const scope = makePgConnectionScope(server.url, undefined, { + // The production factory, with the dial bound shortened for the test. + openPool: (options) => createMaplePgPool(server.url, { ...options, connectTimeoutSeconds: 0.3 }), + }) + const exit = yield* Effect.exit( + withPgConnectionScopeOf( + scope, + scope.run((db) => db.execute(sql`select 1`)).pipe(Effect.withTracer(tracer)), + ), + ) + assert.isTrue(Exit.isFailure(exit)) + const [span] = dbSpans(spans) + assert.isDefined(span) + return span + }).pipe(Effect.scoped) + +describe("connection failures through the real driver", () => { + it.live("classifies a dial that hits the connect timeout as a connection failure", () => + Effect.gen(function* () { + const span = yield* failedDbSpan("stall") + assert.strictEqual(span.attributes.get("error.type"), "ConnectionError") + assert.strictEqual(span.attributes.get("db.connect.failed"), true) + assert.isUndefined(span.attributes.get("db.response.status_code")) + }), + ) + + it.live("classifies a socket the server drops as a connection failure", () => + Effect.gen(function* () { + const span = yield* failedDbSpan("hangup") + assert.strictEqual(span.attributes.get("error.type"), "ConnectionError") + assert.strictEqual(span.attributes.get("db.connect.failed"), true) + }), + ) }) describe("executeOnFreshPgClient", () => { it.effect("runs the callback and releases its connection", () => Effect.gen(function* () { - // No seam: this builds a real postgres.js client, which connects lazily. - // Nothing here issues a statement, so the unroutable port is never dialed. + // No seam: this builds a real pool, which connects lazily. Nothing here + // issues a statement, so the unroutable port is never dialed. const result = yield* executeOnFreshPgClient("postgres://maple:maple@127.0.0.1:1/never", noop) assert.strictEqual(result, "ok") @@ -349,9 +453,7 @@ describe("executeOnFreshPgClient", () => { it.effect("releases its connection when the callback fails, and preserves the error", () => Effect.gen(function* () { const exit = yield* Effect.exit( - executeOnFreshPgClient("postgres://maple:maple@127.0.0.1:1/never", () => - Promise.reject(new Error("boom")), - ), + executeOnFreshPgClient("postgres://maple:maple@127.0.0.1:1/never", boom), ) assert.isTrue(Exit.isFailure(exit)) @@ -360,32 +462,31 @@ describe("executeOnFreshPgClient", () => { }) describe("pgConnectionScopeFrom", () => { - it.effect("spans a client someone else owns and never closes it", () => + it.effect("spans a database someone else owns and never closes it", () => Effect.gen(function* () { const { spans, tracer } = makeRecordingTracer() - let closed = false - const owned = { - end: () => { - closed = true - }, - } as DatabaseClient + const rec = recorder() + // Build a real database the way the Workflow seams do, without dialing. + const owning = makePgConnectionScope("postgres://unused", undefined, { openPool: rec.openPool }) + const owned = yield* owning.run((db) => Effect.succeed(db)) const scope = pgConnectionScopeFrom(owned) - const seen: Array = [] + const seen: Array = [] const result = yield* scope .run((db) => { seen.push(db) - return Promise.resolve("ok") + return Effect.succeed("ok") }) .pipe(Effect.withTracer(tracer)) - yield* Effect.promise(() => scope.close()) + yield* scope.close assert.strictEqual(result, "ok") assert.strictEqual(seen[0], owned) assert.strictEqual(dbSpans(spans).length, 1) // The caller owns the connection; closing it here would pull it out from // under the Workflow that handed it over. - assert.isFalse(closed) + assert.strictEqual(rec.ends(), 0) + yield* owning.close }), ) }) @@ -395,9 +496,9 @@ const countingScope = () => { let closes = 0 const scope: PgConnectionScopeApi = { run: () => Effect.succeed("unused" as never), - close: async () => { + close: Effect.sync(() => { closes += 1 - }, + }), } return { scope, closes: () => closes } } diff --git a/packages/backend/src/platform/pg-connection-scope.ts b/packages/backend/src/platform/pg-connection-scope.ts index 972d59c7e..6191f201a 100644 --- a/packages/backend/src/platform/pg-connection-scope.ts +++ b/packages/backend/src/platform/pg-connection-scope.ts @@ -1,19 +1,25 @@ import { - createMaplePgSocket, - type MaplePgSocketHandle, - type MaplePgSocketOptions, - wrapMaplePgClient, + createMaplePgPool, + type MapleDb, + type MaplePgPool, + type MaplePgPoolOptions, + makeMapleEffectDb, } from "@maple/db/client" import { trackOutboundSlot } from "@maple/cache" -import { Context, Effect, Option, Schema } from "effect" +import { Context, Effect, Exit, Option, Schema, Scope, Semaphore } from "effect" import { MapleDbConnection } from "./bindings" -import type { DatabaseClient, DatabaseError } from "./DatabaseLive" -import { executeWithSpan, failExecuteWithSpan, toDatabaseError } from "./DatabaseLive" +import { + type DatabaseError, + type ExecuteError, + executeWithSpan, + failExecuteWithSpan, + toDatabaseError, +} from "./DatabaseLive" /** - * Cloudflare's documented value for postgres.js behind Hyperdrive. + * Cloudflare's documented value for a pool behind Hyperdrive. * - * `max` is a CEILING, not an allocation: postgres.js opens a second socket only + * `max` is a CEILING, not an allocation: the pool opens a second socket only * when a second statement is genuinely in flight, so a request that makes one * DB call still costs one connection. That is why a single value serves both * the request path (mostly one call per invocation) and the cron path (a tick @@ -31,10 +37,8 @@ export const MAX_CONNECTIONS = 5 /** * One dial attempt, bounded. No retry, no ladder. * - * The bound exists for diagnosis as much as for latency: postgres.js only - * raises `CONNECT_TIMEOUT` from `connectTimedOut()`, and its `timer()` is a - * no-op when `connect_timeout` is unset — so with no bound a stalled dial hangs - * for the whole invocation and lands with no `error.type` at all. + * The bound exists for diagnosis as much as for latency: unset, a stalled dial + * hangs for the whole invocation and lands with no `error.type` at all. * * 10s rather than the 2s that shipped briefly: 2s alone took production 5xx * from 0.06% to 5.01%, and the retry that followed existed only to compensate @@ -50,13 +54,15 @@ const CONNECT_TIMEOUT_SECONDS = 10 * This is the one primitive. `Database.execute` reaches it through * `PgConnectionScope`; `executeOnFreshPgClient` is it with a scope of one call; * the Workflow entrypoints hold one directly. There is no second implementation - * of "open a socket, wrap it per call, put a span around it". + * of "open a pool, build the database over it, put a span around each call". */ export interface PgConnectionScopeApi { /** Run one logical DB call on the scope's connection, inside the standard client span. */ - readonly run: (fn: (db: DatabaseClient) => Promise) => Effect.Effect - /** Release the connection. Safe when nothing was ever created, and safe to call twice. */ - readonly close: () => Promise + readonly run: ( + fn: (db: MapleDb) => Effect.Effect, + ) => Effect.Effect, R> + /** Release the connection. Safe when nothing was ever created, and safe to run twice. */ + readonly close: Effect.Effect } /** @@ -85,44 +91,60 @@ export class PgConnectionScopeClosedError extends Schema.TaggedError( + "@maple/api/platform/DrainRunOnInterrupt", + { defaultValue: () => false }, +) {} + const CLOSED_MESSAGE = "Postgres connection scope is already closed — this call outlived the request, cron tick or Workflow run that owned the connection" /** - * Test seam: how to create the scope's socket. Real callers pass nothing. + * Test seam: how to create the scope's pool. Real callers pass nothing. * * It receives the options the real factory would have been given, so a test can * assert the pool ceiling and the dial bound without dialing anything. Both * have regressed in production before. */ export interface PgConnectionScopeSeams { - readonly openSocket?: (options: MaplePgSocketOptions) => MaplePgSocketHandle + readonly openPool?: (options: MaplePgPoolOptions) => MaplePgPool } /** * Build a scope over one connection string. * - * Cloudflare's documented Hyperdrive shape — one client per invocation, created - * lazily, closed at the boundary — reached through a `Context.Reference` + * Cloudflare's documented Hyperdrive shape — one pool per invocation, created + * lazily, ended at the boundary — reached through a `Context.Reference` * because `Database.execute` is called from ~200 places that cannot each be - * handed the client. + * handed the database. * - * There is no dial step and no retry. postgres.js connects on the first query, - * so creating the client is synchronous and cannot fail; a connection problem - * surfaces as that query's error, classified by `postgres-errors.ts`. + * There is no dial step and no retry. The pool connects on the first + * statement, so building the database cannot fail for want of a server; a + * connection problem surfaces as that statement's error, classified by + * `postgres-errors.ts`. */ export const makePgConnectionScope = ( connectionString: string, extraAttributes?: Record, seams?: PgConnectionScopeSeams, ): PgConnectionScopeApi => { - const options: MaplePgSocketOptions = { + const options: MaplePgPoolOptions = { maxConnections: MAX_CONNECTIONS, connectTimeoutSeconds: CONNECT_TIMEOUT_SECONDS, } - const create = - seams?.openSocket ?? ((opts: MaplePgSocketOptions) => createMaplePgSocket(connectionString, opts)) - const openSocket = () => create(options) + const openPool = + seams?.openPool ?? ((opts: MaplePgPoolOptions) => createMaplePgPool(connectionString, opts)) // Three states, not a nullable handle. Cold and Closed both used to be // `undefined`, which made "never dialed" and "already released" the same @@ -131,75 +153,118 @@ export const makePgConnectionScope = ( // sockets to the invocation that opened them, and the call sites that do // this are `Effect.ignore`d (see `fork-request-scoped.ts`), so the failure // never surfaced. Closed is now terminal and refuses instead of reopening. - let state: { _tag: "Cold" } | { _tag: "Open"; handle: MaplePgSocketHandle } | { _tag: "Closed" } = { - _tag: "Cold", - } + let state: { _tag: "Cold" } | { _tag: "Open"; scope: Scope.Closeable; db: MapleDb } | { _tag: "Closed" } = + { + _tag: "Cold", + } + // One permit orders the first open against a concurrent close, so a + // teardown racing the first call can neither orphan a pool nor hand the + // caller one that is being ended underneath it. + const gate = Semaphore.makeUnsafe(1) + const closedFailure = () => toDatabaseError(new PgConnectionScopeClosedError({ message: CLOSED_MESSAGE })) + + // Never let a pool-teardown error shadow the real DB error from the call. + const acquirePool = Effect.acquireRelease( + Effect.sync(() => openPool(options)), + (pool) => Effect.promise(() => pool.end().catch(() => undefined)), + ) + + // Lazy: an invocation that never touches the database never creates one. + const open: Effect.Effect = gate.withPermits(1)( + Effect.suspend(() => { + if (state._tag === "Open") return Effect.succeed(state.db) + if (state._tag === "Closed") return Effect.fail(closedFailure()) + // Uninterruptible (nothing here dials) and closed on failure, so the + // scope either becomes `Open` or is released; never orphaned while Cold. + return Effect.uninterruptible( + Effect.gen(function* () { + const scope = yield* Scope.make() + const db = yield* makeMapleEffectDb(acquirePool).pipe( + Scope.provide(scope), + Effect.mapError(toDatabaseError), + Effect.onError(() => Scope.close(scope, Exit.void)), + ) + state = { _tag: "Open", scope, db } + return db + }), + ) + }), + ) return { // `suspend` so the state is read when the effect runs, not when it is built - // — a call constructed before teardown must still be refused after it. It - // also settles the connection decision in one place: the promise body below - // receives a handle, so it can no longer reach a state that says Closed. - run: (fn: (db: DatabaseClient) => Promise): Effect.Effect => + // — a call constructed before teardown must still be refused after it. + run: (fn: (db: MapleDb) => Effect.Effect): Effect.Effect, R> => Effect.suspend(() => { if (state._tag === "Closed") { - return failExecuteWithSpan( - toDatabaseError(new PgConnectionScopeClosedError({ message: CLOSED_MESSAGE })), - { - ...extraAttributes, - "db.connect.scope_state": "closed", - // `error.type` because `postgresErrorType` has nothing to classify - // here: no driver was involved, so without this the span would land - // as an unlabelled database error next to real ones. - "error.type": "SCOPE_CLOSED", - }, - ) + return failExecuteWithSpan(closedFailure(), { + ...extraAttributes, + "db.connect.scope_state": "closed", + // `error.type` because `postgresErrorType` has nothing to classify + // here: no driver was involved, so without this the span would land + // as an unlabelled database error next to real ones. + "error.type": "SCOPE_CLOSED", + }) } - // Lazy: an invocation that never touches the database never creates one. const reused = state._tag === "Open" - const open = state._tag === "Open" ? state.handle : openSocket() - state = { _tag: "Open", handle: open } // `trackOutboundSlot` scopes to the statement, not the socket: an idle // kept-open connection doesn't starve `cache.match()`, an in-flight // statement does. - return trackOutboundSlot( - executeWithSpan(async (hooks) => { + const call = trackOutboundSlot( + executeWithSpan((hooks) => { hooks.record({ "db.connect.reused": reused }) - // Wrapped per call so each call's statements land in its own span. - // One shared wrapper would cross-attribute `db.query.text` between - // concurrent calls; the wrapper is cheap (relational config only). - return await fn(wrapMaplePgClient(open.sql, { onQuery: hooks.collect })) + // A close can land while this call waits for a slot or the gate; + // label that refusal the same as the synchronous one above. + const opened = open.pipe( + Effect.tapError(() => + Effect.sync(() => { + if (state._tag === "Closed") { + hooks.record({ + "db.connect.scope_state": "closed", + "error.type": "SCOPE_CLOSED", + }) + } + }), + ), + ) + return Effect.flatMap(opened, fn) }, extraAttributes), ) + return Effect.flatMap(DrainRunOnInterrupt, (drain) => + drain ? Effect.uninterruptible(call) : call, + ) }), // Closed first, then release: a call racing the teardown is refused - // rather than handed a socket that is being ended underneath it. - close: async () => { - const previous = state - state = { _tag: "Closed" } - if (previous._tag === "Open") await previous.handle.end().catch(() => undefined) - }, + // rather than handed a pool that is being ended underneath it. + close: gate.withPermits(1)( + Effect.suspend(() => { + const previous = state + state = { _tag: "Closed" } + return previous._tag === "Open" ? Scope.close(previous.scope, Exit.void) : Effect.void + }), + ), } } /** - * A scope over a client someone else owns — the Workflow test seams pass a - * PGlite-backed drizzle. No statement collector is available, so spans carry - * kind, identity and timing but no `db.query.text`; `close` is a no-op because - * the caller owns the connection. + * A scope over a database someone else owns — the Workflow test seams pass a + * PGlite-backed one. Spans carry kind, identity, timing and the statements + * (the collector is a fiber reference, so it works over any database built + * with Maple's logger); `close` is a no-op because the caller owns the + * connection. */ export const pgConnectionScopeFrom = ( - db: DatabaseClient, + db: MapleDb, extraAttributes?: Record, ): PgConnectionScopeApi => ({ run: (fn) => executeWithSpan(() => fn(db), extraAttributes), - close: () => Promise.resolve(), + close: Effect.void, }) /** * Run one callback against its own connection, for callers with no scope - * installed. A scope of exactly one call — same span, same socket handling, + * installed. A scope of exactly one call — same span, same pool handling, * released immediately. * * A connection per call is correct but wasteful, so entry points should install @@ -207,15 +272,14 @@ export const pgConnectionScopeFrom = ( * that opened them, so a connection may be reused freely WITHIN one but must * never outlive it. */ -export const executeOnFreshPgClient = ( +export const executeOnFreshPgClient = ( connectionString: string, - fn: (db: DatabaseClient) => Promise, + fn: (db: MapleDb) => Effect.Effect, extraAttributes?: Record, -): Effect.Effect => +): Effect.Effect, R> => Effect.suspend(() => { const scope = makePgConnectionScope(connectionString, extraAttributes) - // Never let a socket-teardown error shadow the real DB error from fn(db). - return scope.run(fn).pipe(Effect.ensuring(Effect.promise(() => scope.close()))) + return scope.run(fn).pipe(Effect.ensuring(scope.close)) }) /** @@ -228,10 +292,7 @@ export const withPgConnectionScopeOf = ( scope: PgConnectionScopeApi, program: Effect.Effect, ): Effect.Effect => - program.pipe( - Effect.provideService(PgConnectionScope, scope), - Effect.ensuring(Effect.promise(() => scope.close())), - ) + program.pipe(Effect.provideService(PgConnectionScope, scope), Effect.ensuring(scope.close)) /** * Install a connection scope for the duration of `program`. diff --git a/packages/backend/src/platform/postgres-errors.test.ts b/packages/backend/src/platform/postgres-errors.test.ts index d9ca3a63b..1f2b09d89 100644 --- a/packages/backend/src/platform/postgres-errors.test.ts +++ b/packages/backend/src/platform/postgres-errors.test.ts @@ -1,4 +1,14 @@ import { assert, describe, it } from "@effect/vitest" +import { EffectDrizzleQueryError } from "drizzle-orm/effect-core" +import { Cause } from "effect" +import { + ConnectionError, + DeadlockError, + SqlError, + SqlSyntaxError, + UniqueViolation, + UnknownError, +} from "effect/unstable/sql/SqlError" import { DatabaseError, toDatabaseError } from "./DatabaseLive" import { isPostgresConnectionError, @@ -7,31 +17,150 @@ import { postgresSqlState, } from "./postgres-errors" -/** postgres.js hangs its machine-readable class off `code`, not the message. */ -const driverError = (code: string, message: string): Error => Object.assign(new Error(message), { code }) +/** A pg error the way node-postgres raises it: the class hangs off `code`. */ +const pgError = (code: string, message: string): Error => Object.assign(new Error(message), { code }) + +/** A statement failure the way drizzle's effect session raises it. */ +const queryFailure = (query: string, reason: SqlError["reason"]): EffectDrizzleQueryError => + new EffectDrizzleQueryError({ query, params: [], cause: Cause.fail(new SqlError({ reason })) }) describe("postgresErrorType", () => { - it("reports the driver code for a dial that timed out", () => { - const error = toDatabaseError(driverError("CONNECT_TIMEOUT", "write CONNECT_TIMEOUT")) - assert.strictEqual(postgresErrorType(error), "CONNECT_TIMEOUT") + it("reports the socket code for a dial that was refused", () => { + const error = toDatabaseError( + new SqlError({ + reason: new ConnectionError({ + cause: pgError("ECONNREFUSED", "connect ECONNREFUSED 10.0.0.1:5432"), + message: "Connection error", + operation: "acquireConnection", + }), + }), + ) + assert.strictEqual(postgresErrorType(error), "ECONNREFUSED") assert.isTrue(isPostgresConnectionError(error)) // A connection failure has no SQLSTATE — nothing was ever executed. assert.isUndefined(postgresSqlState(error)) + // The socket's own message leads, not the classification's. + assert.strictEqual(error.message, "connect ECONNREFUSED 10.0.0.1:5432") + }) + + it("classifies node-postgres's code-less connection failures as connection errors", () => { + // `@effect/sql-pg` only tags SQLSTATE 08* as `ConnectionError`; these carry + // no code at all, so they arrive as `UnknownError`. + for (const [message, operation] of [ + ["timeout expired", "acquireConnection"], + ["Connection terminated due to connection timeout", "acquireConnection"], + ["Connection terminated unexpectedly", "acquireConnection"], + ["Connection terminated unexpectedly", "execute"], + ] as const) { + const error = toDatabaseError( + new SqlError({ + reason: new UnknownError({ + cause: new Error(message), + message: "Driver failure", + operation, + }), + }), + ) + assert.strictEqual(postgresErrorType(error), "ConnectionError", `${operation}: ${message}`) + assert.isTrue(isPostgresConnectionError(error), `${operation}: ${message}`) + assert.isUndefined(postgresSqlState(error), `${operation}: ${message}`) + } + }) + + it("leaves an acquire failure that carries a SQLSTATE to its code", () => { + const error = toDatabaseError( + new SqlError({ + reason: new UnknownError({ + cause: pgError("53300", "sorry, too many clients already"), + message: "Failed to acquire connection", + operation: "acquireConnection", + }), + }), + ) + assert.strictEqual(postgresErrorType(error), "53300") + assert.isFalse(isPostgresConnectionError(error)) }) - it("reports SQLSTATE for a statement failure", () => { + it("classifies a statement cut off by a dropped connection as a connection error", () => { const error = toDatabaseError( - driverError("23505", 'duplicate key value violates unique constraint "api_keys_pkey"'), + queryFailure( + 'select "id" from "actors"', + new UnknownError({ + cause: new Error("Connection terminated unexpectedly"), + message: "Failed to execute statement", + operation: "execute", + }), + ), + ) + assert.strictEqual(postgresErrorType(error), "ConnectionError") + assert.isTrue(isPostgresConnectionError(error)) + }) + + it("keeps the driver's own ConnectionError classification", () => { + const error = toDatabaseError( + new SqlError({ + reason: new ConnectionError({ + cause: pgError("08006", "connection failure"), + message: "Connection error", + operation: "execute", + }), + }), + ) + assert.isTrue(isPostgresConnectionError(error)) + }) + + it("leaves other code-less driver failures unclassified as connection errors", () => { + const error = toDatabaseError( + new SqlError({ + reason: new UnknownError({ + cause: new Error("Client has already been connected. You cannot reuse a client."), + message: "Failed to execute statement", + operation: "execute", + }), + }), + ) + assert.strictEqual(postgresErrorType(error), "UnknownError") + assert.isFalse(isPostgresConnectionError(error)) + }) + + it("reports SQLSTATE for a statement failure, root cause first", () => { + const error = toDatabaseError( + queryFailure( + 'insert into "api_keys" ("id") values ($1)', + new UniqueViolation({ + cause: pgError("23505", 'duplicate key value violates unique constraint "api_keys_pkey"'), + constraint: "api_keys_pkey", + }), + ), ) assert.strictEqual(postgresErrorType(error), "23505") assert.strictEqual(postgresSqlState(error), "23505") // The distinction the flattened message could not carry: this is the query // failing, not the connection. assert.isFalse(isPostgresConnectionError(error)) + assert.strictEqual( + error.message, + 'duplicate key value violates unique constraint "api_keys_pkey" [while: insert into "api_keys" ("id") values ($1)]', + ) + // The SqlError, not the drizzle error: that one's message carries the params. + assert.instanceOf(error.cause, SqlError) }) - it("unwraps a driver code nested one level down", () => { - const outer = new Error("Failed query", { cause: driverError("ECONNRESET", "socket hang up") }) + it("caps the statement in the message and keeps it out of the diagnostic", () => { + const longQuery = `insert into "error_events" values ${"($1),".repeat(400)}` + const error = toDatabaseError( + queryFailure( + longQuery, + new SqlSyntaxError({ cause: pgError("42601", "syntax error at end of input") }), + ), + ) + assert.match(error.message, /^syntax error at end of input \[while: insert into/) + assert.include(error.message, "…[truncated") + assert.isBelow(error.message.length, 800) + }) + + it("unwraps a legacy driver code nested one level down", () => { + const outer = new Error("Failed query", { cause: pgError("ECONNRESET", "socket hang up") }) const error = toDatabaseError(outer) assert.strictEqual(postgresErrorType(error), "ECONNRESET") assert.isTrue(isPostgresConnectionError(error)) @@ -48,18 +177,28 @@ describe("postgresErrorType", () => { assert.isFalse(isPostgresConnectionError(toDatabaseError(new Error("boom")))) }) - it("leaves contention classification unchanged", () => { - const deadlock = toDatabaseError(driverError("40P01", "deadlock detected")) + it("treats the driver's deadlock classification as retryable contention", () => { + const deadlock = toDatabaseError( + queryFailure( + 'update "alert_rule_claims" …', + new DeadlockError({ cause: pgError("40P01", "deadlock detected") }), + ), + ) assert.isTrue(isRetryablePostgresContention(deadlock)) // Contention is a statement failure, not a connection one — a retry there // must not be counted against the dial budget. assert.isFalse(isPostgresConnectionError(deadlock)) }) + it("leaves legacy contention classification unchanged", () => { + const deadlock = toDatabaseError(pgError("40P01", "deadlock detected")) + assert.isTrue(isRetryablePostgresContention(deadlock)) + }) + it("does not treat a connection failure as retryable contention", () => { const error = new DatabaseError({ - message: "write CONNECT_TIMEOUT", - cause: driverError("CONNECT_TIMEOUT", "write CONNECT_TIMEOUT"), + message: "connect ECONNREFUSED", + cause: pgError("ECONNREFUSED", "connect ECONNREFUSED"), }) assert.isFalse(isRetryablePostgresContention(error)) }) diff --git a/packages/backend/src/platform/postgres-errors.ts b/packages/backend/src/platform/postgres-errors.ts index 264a83041..d9a30830a 100644 --- a/packages/backend/src/platform/postgres-errors.ts +++ b/packages/backend/src/platform/postgres-errors.ts @@ -1,8 +1,13 @@ // BOUNDARY: This module intentionally carries opaque values; callers decode them before domain use. +import { EffectDrizzleQueryError } from "drizzle-orm/effect-core" +import { Cause, Option } from "effect" +import { SqlError } from "effect/unstable/sql/SqlError" import type { DatabaseError } from "./DatabaseLive" const RETRYABLE_CONTENTION_CODES: ReadonlySet = new Set(["40001", "40P01"]) const RETRYABLE_CONTENTION_MESSAGE = /\b(?:40001|40P01)\b/ +/** `@effect/sql`'s classification of the same two SQLSTATEs. */ +const RETRYABLE_CONTENTION_REASONS: ReadonlySet = new Set(["DeadlockError", "SerializationError"]) const causeCode = (cause: unknown): string | undefined => { if (typeof cause !== "object" || cause === null || !("code" in cause)) return undefined @@ -15,19 +20,57 @@ const causeMessage = (cause: unknown): string | undefined => { return typeof cause === "string" ? cause : undefined } +/** + * The `SqlError` behind a driver failure, when there is one. A statement + * failure arrives as `EffectDrizzleQueryError` whose `cause` is a + * `Cause`; transaction control fails with a bare `SqlError`. + * Anything else — a scope refusal, a test double — has none. + */ +export const driverSqlError = (cause: unknown): SqlError | undefined => { + if (cause instanceof SqlError) return cause + if (cause instanceof EffectDrizzleQueryError) { + const inner: unknown = cause.cause + if (Cause.isCause(inner)) { + const failure = Cause.findErrorOption(inner) + return Option.isSome(failure) ? driverSqlError(failure.value) : undefined + } + return driverSqlError(inner) + } + return undefined +} + +/** `@effect/sql`'s classification of a driver failure, when the error carries one. */ +export const driverReason = (cause: unknown): SqlError["reason"] | undefined => driverSqlError(cause)?.reason + +/** + * The pg error underneath the classification — the half an operator needs + * (`relation "x" does not exist`) and the SQLSTATE the span reports. + */ +export const driverRootError = ( + cause: unknown, +): { readonly code: string | undefined; readonly message: string | undefined } | undefined => { + const reason = driverReason(cause) + if (reason === undefined) return undefined + return { code: causeCode(reason.cause), message: causeMessage(reason.cause) ?? reason.message } +} + /** PostgreSQL failures that are safe to retry as a fresh transaction attempt. */ export const isRetryablePostgresContention = (error: DatabaseError): boolean => { if (RETRYABLE_CONTENTION_MESSAGE.test(error.message)) return true - const code = causeCode(error.cause) + const reason = driverReason(error.cause) + if (reason !== undefined && RETRYABLE_CONTENTION_REASONS.has(reason._tag)) return true + const code = errorCode(error) if (code !== undefined && RETRYABLE_CONTENTION_CODES.has(code)) return true const innerMessage = causeMessage(error.cause) return innerMessage !== undefined && RETRYABLE_CONTENTION_MESSAGE.test(innerMessage) } /** - * postgres.js codes for failures to establish or keep a connection, as opposed - * to failures of a statement. `CONNECT_TIMEOUT` is the one `connect_timeout` - * raises; the `E*` codes come straight from the socket. + * Socket-level codes for failures to establish or keep a connection, as + * opposed to failures of a statement. node-postgres surfaces the socket's own + * code. A dial timeout (`timeout expired`) or a dropped socket carries none, + * and `@effect/sql-pg` only tags SQLSTATE `08*` as `ConnectionError`, so those + * are recognised by the operation that failed or by node-postgres's message. */ const CONNECTION_ERROR_CODES: ReadonlySet = new Set([ "CONNECT_TIMEOUT", @@ -46,24 +89,46 @@ const CONNECTION_ERROR_CODES: ReadonlySet = new Set([ /** SQLSTATE: five alphanumerics, e.g. `23505`, `40001`, `57014`. */ const SQLSTATE = /^[0-9A-Z]{5}$/ +/** node-postgres's message for a socket that closed under a statement. */ +const DROPPED_CONNECTION_MESSAGE = /^Connection terminated/ + +/** + * A connection-class driver failure: tagged `ConnectionError`, or code-less and + * either raised while acquiring a connection or a socket dropped mid-statement. + * An acquire failure WITH a code is left to the code (`28P01` is auth, not a + * dead connection). + */ +const isConnectionReason = (cause: unknown): boolean => { + const reason = driverReason(cause) + if (reason === undefined) return false + if (reason._tag === "ConnectionError") return true + const root = driverRootError(cause) + if (root === undefined || root.code !== undefined) return false + if (reason.operation === "acquireConnection") return true + return root.message !== undefined && DROPPED_CONNECTION_MESSAGE.test(root.message) +} + const nestedCause = (cause: unknown): unknown => cause instanceof Error && cause.cause !== undefined ? cause.cause : undefined const errorCode = (error: DatabaseError): string | undefined => - causeCode(error.cause) ?? causeCode(nestedCause(error.cause)) + driverRootError(error.cause)?.code ?? causeCode(error.cause) ?? causeCode(nestedCause(error.cause)) /** * A machine-readable class for the failure, for the span's `error.type`. * * `toDatabaseError` flattens everything into a message string, which made a * dial timeout indistinguishable from a constraint violation once it reached a - * trace — the reason repeated investigations could not separate connection - * failures from query failures. The driver's own code is that distinction, so - * emit it verbatim rather than inventing a taxonomy. + * trace. The driver's own code is that distinction where there is one; where + * there is none, `@effect/sql`'s reason tag (`ConnectionError`, + * `AuthenticationError`, …) says which class the failure belongs to. */ export const postgresErrorType = (error: DatabaseError): string | undefined => { const code = errorCode(error) if (code !== undefined) return code + if (isConnectionReason(error.cause)) return "ConnectionError" + const reason = driverReason(error.cause) + if (reason !== undefined) return reason._tag if (error.cause instanceof Error && error.cause.name !== "Error") return error.cause.name return undefined } @@ -82,6 +147,7 @@ export const postgresSqlState = (error: DatabaseError): string | undefined => { * a single database-error rate hides both signals. */ export const isPostgresConnectionError = (error: DatabaseError): boolean => { + if (isConnectionReason(error.cause)) return true const code = errorCode(error) return code !== undefined && CONNECTION_ERROR_CODES.has(code) } diff --git a/packages/backend/src/platform/raw-rows.ts b/packages/backend/src/platform/raw-rows.ts new file mode 100644 index 000000000..817a87e1d --- /dev/null +++ b/packages/backend/src/platform/raw-rows.ts @@ -0,0 +1,10 @@ +/** + * Rows from a raw `db.execute(sql`…`)`. + * + * Under the Effect drivers drizzle hands back the driver's own result object + * (`{ rows, … }` from node-postgres and PGlite alike) although it declares a + * row array. Normalize both shapes instead of trusting the declared type. + */ +export const rawRows = ( + result: ReadonlyArray | { readonly rows: ReadonlyArray }, +): ReadonlyArray => ("rows" in result ? result.rows : result) diff --git a/packages/backend/src/platform/test-pglite.ts b/packages/backend/src/platform/test-pglite.ts index 7d6c5baca..6ee1420a5 100644 --- a/packages/backend/src/platform/test-pglite.ts +++ b/packages/backend/src/platform/test-pglite.ts @@ -1,9 +1,9 @@ import { readFileSync } from "node:fs" -import { PGlite, type Transaction } from "@electric-sql/pglite" +import { PGlite } from "@electric-sql/pglite" import { Effect, Layer } from "effect" import { snapshotPath } from "../../test/pglite-snapshot" import { Database } from "./DatabaseLive" -import { databaseFromInstance } from "./DatabasePgliteLive" +import { makeDatabaseFromInstance } from "./DatabasePgliteLive" // The post-migration data directory, read once per worker process and shared by // every instance it creates. The vitest globalSetup guarantees it exists before @@ -26,33 +26,31 @@ export interface TestDb { } /** - * Reject a bound `Date`, which PGlite accepts and the deployed driver does not. + * Reject a bound `Date`. * - * Production runs `drizzle-orm/postgres-js` → `client.unsafe(sql, params)`, which - * refuses a `Date` param outright ("Received an instance of Date"). PGlite - * serializes one happily, so without this the difference is invisible to the - * suite — which is how a raw `sql` template binding a `Date` reached production - * and stalled the error tick for 25 hours. - * - * There is no legitimate `Date` param: every timestamptz column is - * `mode: "date"`, whose `mapToDriverValue` already returns an ISO string. A - * `Date` surviving into the param array therefore always means a raw `sql` - * fragment with no column type behind it — use `msToSqlTimestamp` there. + * The postgres.js driver this suite used to model refused a `Date` param + * outright, and a raw `sql` template binding one reached production and + * stalled the error tick for 25 hours because PGlite serializes it happily. + * node-postgres accepts a `Date` too, so the guard no longer mirrors a driver + * difference; it enforces the convention that outlived it. There is no + * legitimate `Date` param: every timestamptz column is `mode: "date"`, whose + * `mapToDriverValue` already returns an ISO string. A `Date` surviving into the + * param array therefore always means a raw `sql` fragment with no column type + * behind it — use `msToSqlTimestamp` there. */ const assertNoDateParams = (sql: string, params: unknown[] | undefined): void => { const index = params?.findIndex((param) => param instanceof Date) ?? -1 if (index === -1) return throw new Error( - `Bound a Date as param $${index + 1}, which the deployed postgres.js driver rejects. ` + + `Bound a Date as param $${index + 1}: raw \`sql\` fragments have no column type to serialize it. ` + `Interpolate an ISO string (msToSqlTimestamp) into raw \`sql\` templates instead.\n${sql}`, ) } /** - * PGlite with the guard applied to `query` and, crucially, to the client - * drizzle hands to a `transaction` callback — that is a different object, and - * without re-wrapping it the guard would miss every statement inside a - * transaction, which is exactly where the raw templates live. + * PGlite with the guard applied to `query`. `@effect/sql-pglite` sends every + * statement through it, BEGIN and COMMIT included, so transactions are covered + * without wrapping `pglite.transaction`, which it never calls. */ const withDateParamGuard = (client: T): T => new Proxy(client, { @@ -67,10 +65,6 @@ const withDateParamGuard = (client: T): T => return value.call(target, sql, params, ...rest) } } - if (property === "transaction") { - return (callback: (tx: Transaction) => Promise) => - value.call(target, (tx: Transaction) => callback(withDateParamGuard(tx))) - } return value.bind(target) }, }) @@ -88,7 +82,8 @@ export const createTestDb = (track?: TestDb[]): TestDb => { yield* Effect.promise(() => pglite.waitReady) // The raw instance stays on `TestDb.pglite` for executeSql/queryFirstRow — // those are test fixtures writing their own SQL, not the app's write path. - return databaseFromInstance(withDateParamGuard(pglite)) + // A database that cannot be built over a ready PGlite is a harness defect. + return yield* makeDatabaseFromInstance(withDateParamGuard(pglite)).pipe(Effect.orDie) }), ) const db: TestDb = { diff --git a/packages/backend/src/services/alerts/AlertDestinationsService.ts b/packages/backend/src/services/alerts/AlertDestinationsService.ts index 1b1d3d421..7fc87c1f1 100644 --- a/packages/backend/src/services/alerts/AlertDestinationsService.ts +++ b/packages/backend/src/services/alerts/AlertDestinationsService.ts @@ -856,28 +856,33 @@ export class AlertDestinationsService extends Context.Service< // per-org advisory lock, so re-checking references inside it closes the // race where a rule commits a reference between our scan and the delete. const deleteResult = yield* dbExecute((db) => - db.transaction(async (tx) => { - await tx.execute(sql`select pg_advisory_xact_lock(hashtext(${orgId}))`) - const stillReferenced = await tx - .select({ id: alertRules.id, name: alertRules.name }) - .from(alertRules) - .where( - and( - eq(alertRules.orgId, orgId), - sql`${alertRules.destinationIdsJson} @> ${JSON.stringify([destinationId])}::jsonb`, - ), - ) - if (stillReferenced.length > 0) { - return { referencedBy: stillReferenced, deleted: [] } - } - const deleted = await tx - .delete(alertDestinations) - .where( - and(eq(alertDestinations.orgId, orgId), eq(alertDestinations.id, destinationId)), - ) - .returning(txidColumn) - return { referencedBy: [], deleted } - }), + db.transaction((tx) => + Effect.gen(function* () { + yield* tx.execute(sql`select pg_advisory_xact_lock(hashtext(${orgId}))`) + const stillReferenced = yield* tx + .select({ id: alertRules.id, name: alertRules.name }) + .from(alertRules) + .where( + and( + eq(alertRules.orgId, orgId), + sql`${alertRules.destinationIdsJson} @> ${JSON.stringify([destinationId])}::jsonb`, + ), + ) + if (stillReferenced.length > 0) { + return { referencedBy: stillReferenced, deleted: [] } + } + const deleted = yield* tx + .delete(alertDestinations) + .where( + and( + eq(alertDestinations.orgId, orgId), + eq(alertDestinations.id, destinationId), + ), + ) + .returning(txidColumn) + return { referencedBy: [], deleted } + }), + ), ) if (deleteResult.referencedBy.length > 0) { return yield* Effect.fail( diff --git a/packages/backend/src/services/alerts/AlertRulesService.ts b/packages/backend/src/services/alerts/AlertRulesService.ts index 0a35e9c99..a96e5f939 100644 --- a/packages/backend/src/services/alerts/AlertRulesService.ts +++ b/packages/backend/src/services/alerts/AlertRulesService.ts @@ -24,7 +24,7 @@ import { alertRuleStates, } from "@maple/db" import { and, desc, eq, inArray, sql } from "drizzle-orm" -import { Array as Arr, Context, Effect, HashSet, Layer, Match, Schema } from "effect" +import { Array as Arr, Context, Effect, HashSet, Layer, Schema } from "effect" import { Database, type DatabaseApi } from "@maple/backend/platform/DatabaseLive" import { makeDbExecute } from "@maple/backend/platform/db-execute" import { readTxid, txidColumn } from "@maple/backend/platform/electric-txid" @@ -187,44 +187,55 @@ export const makeAlertRulePersistence = (options: { updatedBy: userId, } as const - const writeResult = yield* dbExecute((db) => - db.transaction(async (tx) => { - await tx.execute(sql`select pg_advisory_xact_lock(hashtext(${orgId}))`) - // Destination existence is checked INSIDE the lock: destination - // deletion takes the same per-org advisory lock around its reference - // scan, so a rule can no longer commit a reference to a destination - // whose deletion validated "unreferenced" concurrently. - if (normalized.destinationIds.length > 0) { - const destinationRows = await tx - .select({ id: alertDestinations.id }) - .from(alertDestinations) - .where( - and( - eq(alertDestinations.orgId, orgId), - inArray(alertDestinations.id, [...normalized.destinationIds]), - ), + const writeRows = yield* dbExecute((db) => + db.transaction((tx) => + Effect.gen(function* () { + yield* tx.execute(sql`select pg_advisory_xact_lock(hashtext(${orgId}))`) + // Destination existence is checked INSIDE the lock: destination + // deletion takes the same per-org advisory lock around its reference + // scan, so a rule can no longer commit a reference to a destination + // whose deletion validated "unreferenced" concurrently. + if (normalized.destinationIds.length > 0) { + const destinationRows = yield* tx + .select({ id: alertDestinations.id }) + .from(alertDestinations) + .where( + and( + eq(alertDestinations.orgId, orgId), + inArray(alertDestinations.id, [...normalized.destinationIds]), + ), + ) + const existingIds = new Set(destinationRows.map((destination) => destination.id)) + const missingDestinationId = normalized.destinationIds.find( + (id) => !existingIds.has(id), ) - const existingIds = new Set(destinationRows.map((destination) => destination.id)) - const missingDestinationId = normalized.destinationIds.find((id) => !existingIds.has(id)) - if (missingDestinationId !== undefined) { - return { _tag: "MissingDestination" as const, destinationId: missingDestinationId } + if (missingDestinationId !== undefined) { + return yield* Effect.fail( + new AlertRuleDestinationNotFoundError({ + message: "Alert rule references an unknown destination", + destinationId: missingDestinationId, + }), + ) + } } - } - if (normalized.enabled) { - const activeRows = await tx - .select({ id: alertRules.id }) - .from(alertRules) - .where(and(eq(alertRules.orgId, orgId), eq(alertRules.enabled, true))) - const alreadyActive = - existingId != null && activeRows.some((row) => row.id === existingId) - if (!alreadyActive && activeRows.length >= MAX_ACTIVE_ALERT_RULES_PER_ORG) { - return { _tag: "LimitExceeded" as const } + if (normalized.enabled) { + const activeRows = yield* tx + .select({ id: alertRules.id }) + .from(alertRules) + .where(and(eq(alertRules.orgId, orgId), eq(alertRules.enabled, true))) + const alreadyActive = + existingId != null && activeRows.some((row) => row.id === existingId) + if (!alreadyActive && activeRows.length >= MAX_ACTIVE_ALERT_RULES_PER_ORG) { + return yield* Effect.fail( + makeAlertValidationError( + `Organizations may have at most ${MAX_ACTIVE_ALERT_RULES_PER_ORG} active alert rules`, + ), + ) + } } - } - const writeRows = - existingId == null - ? await tx + return existingId == null + ? yield* tx .insert(alertRules) .values({ id: ruleId, @@ -234,43 +245,20 @@ export const makeAlertRulePersistence = (options: { createdBy: userId, }) .returning(txidColumn) - : await tx + : yield* tx .update(alertRules) .set(ruleFields) .where(and(eq(alertRules.orgId, orgId), eq(alertRules.id, existingId))) .returning(txidColumn) - return { _tag: "Written" as const, writeRows } - }), - ) - // The transaction runs in Promise-land, so it reports its outcome as a tagged - // value and the failures are raised out here — `Match.exhaustive` is what makes - // a fourth outcome a compile error rather than a silently ignored branch. - return yield* Match.value(writeResult).pipe( - Match.tag("MissingDestination", (outcome) => - Effect.fail( - new AlertRuleDestinationNotFoundError({ - message: "Alert rule references an unknown destination", - destinationId: outcome.destinationId, - }), - ), - ), - Match.tag("LimitExceeded", () => - Effect.fail( - makeAlertValidationError( - `Organizations may have at most ${MAX_ACTIVE_ALERT_RULES_PER_ORG} active alert rules`, - ), - ), - ), - Match.tag("Written", (outcome) => - Effect.succeed({ - normalized, - ruleId, - timestamp, - txid: readTxid(outcome.writeRows), }), ), - Match.exhaustive, ) + return { + normalized, + ruleId, + timestamp, + txid: readTxid(writeRows), + } }) const upsertRuleRow = Effect.fn("AlertsService.upsertRuleRow")(function* ( @@ -349,22 +337,26 @@ export const makeAlertRulePersistence = (options: { yield* requireAdmin(roles) yield* requireRuleRow(orgId, ruleId) const deleted = yield* dbExecute((db) => - db.transaction(async (tx) => { - await tx - .delete(alertDeliveryEvents) - .where(and(eq(alertDeliveryEvents.orgId, orgId), eq(alertDeliveryEvents.ruleId, ruleId))) - await tx - .delete(alertIncidents) - .where(and(eq(alertIncidents.orgId, orgId), eq(alertIncidents.ruleId, ruleId))) - await tx - .delete(alertRuleStates) - .where(and(eq(alertRuleStates.orgId, orgId), eq(alertRuleStates.ruleId, ruleId))) - await tx.delete(alertRuleClaims).where(eq(alertRuleClaims.ruleId, ruleId)) - return tx - .delete(alertRules) - .where(and(eq(alertRules.orgId, orgId), eq(alertRules.id, ruleId))) - .returning(txidColumn) - }), + db.transaction((tx) => + Effect.gen(function* () { + yield* tx + .delete(alertDeliveryEvents) + .where( + and(eq(alertDeliveryEvents.orgId, orgId), eq(alertDeliveryEvents.ruleId, ruleId)), + ) + yield* tx + .delete(alertIncidents) + .where(and(eq(alertIncidents.orgId, orgId), eq(alertIncidents.ruleId, ruleId))) + yield* tx + .delete(alertRuleStates) + .where(and(eq(alertRuleStates.orgId, orgId), eq(alertRuleStates.ruleId, ruleId))) + yield* tx.delete(alertRuleClaims).where(eq(alertRuleClaims.ruleId, ruleId)) + return yield* tx + .delete(alertRules) + .where(and(eq(alertRules.orgId, orgId), eq(alertRules.id, ruleId))) + .returning(txidColumn) + }), + ), ) const txid = readTxid(deleted) return new AlertRuleDeleteResponse({ diff --git a/packages/backend/src/services/alerts/AlertsService.ts b/packages/backend/src/services/alerts/AlertsService.ts index 505a35bba..7be2a5c64 100644 --- a/packages/backend/src/services/alerts/AlertsService.ts +++ b/packages/backend/src/services/alerts/AlertsService.ts @@ -66,6 +66,7 @@ import { alertRuleStates, type AlertRuleStateRow, } from "@maple/db" +import type { MapleDbLike } from "@maple/db/client" import { and, asc, desc, eq, gte, inArray, isNotNull, isNull, lt, lte, ne, or, sql } from "drizzle-orm" import { Array as Arr, @@ -95,7 +96,7 @@ import { } from "@maple/backend/services/alerts/telemetry-liveness" import { simulateFiringSpans } from "./alert-firing-spans" import { WorkerEnvironment } from "@maple/infra/worker-runtime" -import { Database, type DatabaseClient } from "@maple/backend/platform/DatabaseLive" +import { Database } from "@maple/backend/platform/DatabaseLive" import { formatComparator } from "./alert-formatting" import { makeIncidentPushBudget, type IncidentPushBudget } from "./alert-push-budget" import { EmailService } from "@maple/backend/platform/EmailService" @@ -209,9 +210,6 @@ const ISSUE_UPSERTS_PER_TICK = 50 const LIVE_ACTIVITY_CHECK_HISTORY = 30 const DELIVERY_LEASE_TTL_MS = 30_000 -type DatabaseTransaction = Parameters[0]>[0] -type DatabaseExecutor = DatabaseClient | DatabaseTransaction - /* -------------------------------------------------------------------------- */ /* Schemas for stored JSON formats */ /* -------------------------------------------------------------------------- */ @@ -676,7 +674,7 @@ export class AlertsService extends Context.Service makeAlertDeliveryKey(incidentId, destinationId, eventType, scheduledAt) const insertDeliveryEventRecord = ( - db: DatabaseExecutor, + db: MapleDbLike, orgId: OrgId, incidentId: AlertIncidentId | null, ruleId: AlertRuleId, @@ -2722,30 +2720,32 @@ export class AlertsService extends Context.Service, timestamp: number) => - dbExecute(async (db) => { - const claimed = await db - .insert(alertRuleClaims) - .values( - chunk.map((row) => ({ - ruleId: row.id, - orgId: row.orgId, - lastScheduledAt: new Date(timestamp), - })), - ) - .onConflictDoUpdate({ - target: alertRuleClaims.ruleId, - set: { lastScheduledAt: new Date(timestamp) }, - setWhere: lt( - alertRuleClaims.lastScheduledAt, - new Date(timestamp - SCHEDULER_LOCK_TTL_MS), - ), - }) - .returning({ id: alertRuleClaims.ruleId }) + dbExecute((db) => + Effect.gen(function* () { + const claimed = yield* db + .insert(alertRuleClaims) + .values( + chunk.map((row) => ({ + ruleId: row.id, + orgId: row.orgId, + lastScheduledAt: new Date(timestamp), + })), + ) + .onConflictDoUpdate({ + target: alertRuleClaims.ruleId, + set: { lastScheduledAt: new Date(timestamp) }, + setWhere: lt( + alertRuleClaims.lastScheduledAt, + new Date(timestamp - SCHEDULER_LOCK_TTL_MS), + ), + }) + .returning({ id: alertRuleClaims.ruleId }) - if (claimed.length === 0) return claimed + if (claimed.length === 0) return claimed - try { - await db + // Matches the `Effect.ignore` this call carried when it was a + // separate execute. + yield* db .update(alertRules) .set({ lastScheduledAt: new Date(timestamp) }) .where( @@ -2763,13 +2763,11 @@ export class AlertsService extends Context.Service row.id) const orgIds = Arr.dedupe(Arr.map(rows, (row) => row.orgId)) - const { stateRows, incidentRows } = yield* dbExecute(async (db) => { - const [stateRows, incidentRows] = await Promise.all([ - db - .select() - .from(alertRuleStates) - .where( - and( - inArray(alertRuleStates.orgId, orgIds), - inArray(alertRuleStates.ruleId, ruleIds), + const { stateRows, incidentRows } = yield* dbExecute((db) => + Effect.all( + { + stateRows: db + .select() + .from(alertRuleStates) + .where( + and( + inArray(alertRuleStates.orgId, orgIds), + inArray(alertRuleStates.ruleId, ruleIds), + ), ), - ), - db - .select() - .from(alertIncidents) - .where( - and( - inArray(alertIncidents.orgId, orgIds), - inArray(alertIncidents.ruleId, ruleIds), - eq(alertIncidents.status, "open"), + incidentRows: db + .select() + .from(alertIncidents) + .where( + and( + inArray(alertIncidents.orgId, orgIds), + inArray(alertIncidents.ruleId, ruleIds), + eq(alertIncidents.status, "open"), + ), ), - ), - ]) - return { stateRows, incidentRows } - }) + }, + { concurrency: "unbounded" }, + ), + ) const stateByGroup = MutableHashMap.fromIterable( Arr.map( diff --git a/packages/backend/src/services/auth/CliDeviceAuthService.ts b/packages/backend/src/services/auth/CliDeviceAuthService.ts index bd31a8d39..104f09fbd 100644 --- a/packages/backend/src/services/auth/CliDeviceAuthService.ts +++ b/packages/backend/src/services/auth/CliDeviceAuthService.ts @@ -352,44 +352,46 @@ export class CliDeviceAuthService extends Context.Service< const now = yield* Clock.currentTimeMillis const won = yield* database .execute((db) => - db.transaction(async (tx) => { - const claimed = await tx - .update(cliDeviceAuthorizations) - .set({ - apiKeyId, - tokenCiphertext: encrypted.ciphertext, - tokenIv: encrypted.iv, - tokenTag: encrypted.tag, + db.transaction((tx) => + Effect.gen(function* () { + const claimed = yield* tx + .update(cliDeviceAuthorizations) + .set({ + apiKeyId, + tokenCiphertext: encrypted.ciphertext, + tokenIv: encrypted.iv, + tokenTag: encrypted.tag, + }) + .where( + and( + eq(cliDeviceAuthorizations.deviceCodeHash, row.deviceCodeHash), + isNull(cliDeviceAuthorizations.apiKeyId), + ), + ) + .returning({ deviceCodeHash: cliDeviceAuthorizations.deviceCodeHash }) + if (claimed.length === 0) return false + yield* tx.insert(apiKeysTable).values({ + id: apiKeyId, + orgId: row.approvedOrgId!, + name: row.deviceName, + description: "Created by maple auth login", + keyHash: hashApiKey(rawToken, apiKeyHmacKey), + keyPrefix: rawToken.slice(0, 12) + "...", + kind: "standard", + scopes: null, + metadataJson: { + source: "maple_cli", + roles: row.approvedRoles, + deviceName: row.deviceName, + }, + expiresAt: new Date(now + CLI_KEY_TTL_MS), + createdAt: new Date(now), + createdBy: row.approvedUserId!, + createdByEmail: row.approvedUserEmail, }) - .where( - and( - eq(cliDeviceAuthorizations.deviceCodeHash, row.deviceCodeHash), - isNull(cliDeviceAuthorizations.apiKeyId), - ), - ) - .returning({ deviceCodeHash: cliDeviceAuthorizations.deviceCodeHash }) - if (claimed.length === 0) return false - await tx.insert(apiKeysTable).values({ - id: apiKeyId, - orgId: row.approvedOrgId!, - name: row.deviceName, - description: "Created by maple auth login", - keyHash: hashApiKey(rawToken, apiKeyHmacKey), - keyPrefix: rawToken.slice(0, 12) + "...", - kind: "standard", - scopes: null, - metadataJson: { - source: "maple_cli", - roles: row.approvedRoles, - deviceName: row.deviceName, - }, - expiresAt: new Date(now + CLI_KEY_TTL_MS), - createdAt: new Date(now), - createdBy: row.approvedUserId!, - createdByEmail: row.approvedUserEmail, - }) - return true - }), + return true + }), + ), ) .pipe(Effect.mapError(persistenceError)) if (!won) { diff --git a/packages/backend/src/services/auth/McpOAuthService.ts b/packages/backend/src/services/auth/McpOAuthService.ts index fe6dc0ec7..8e63a87e5 100644 --- a/packages/backend/src/services/auth/McpOAuthService.ts +++ b/packages/backend/src/services/auth/McpOAuthService.ts @@ -312,14 +312,16 @@ export class McpOAuthService extends Context.Service< const purgeExpired = Effect.fn("McpOAuthService.purgeExpired")(function* (now: number) { yield* database .execute((db) => - db.transaction(async (tx) => { - await tx - .delete(mcpOAuthAuthorizations) - .where(lt(mcpOAuthAuthorizations.expiresAt, new Date(now))) - await tx - .delete(mcpOAuthRefreshTokens) - .where(lt(mcpOAuthRefreshTokens.expiresAt, new Date(now))) - }), + db.transaction((tx) => + Effect.gen(function* () { + yield* tx + .delete(mcpOAuthAuthorizations) + .where(lt(mcpOAuthAuthorizations.expiresAt, new Date(now))) + yield* tx + .delete(mcpOAuthRefreshTokens) + .where(lt(mcpOAuthRefreshTokens.expiresAt, new Date(now))) + }), + ), ) .pipe(Effect.mapError(persistenceError)) }) @@ -672,52 +674,58 @@ export class McpOAuthService extends Context.Service< }) const issued = yield* database .execute((db) => - db.transaction(async (tx) => { - const claimed = await tx - .update(mcpOAuthAuthorizations) - .set({ usedAt: new Date(now) }) - .where( - and( - eq(mcpOAuthAuthorizations.requestIdHash, row.requestIdHash), - isNull(mcpOAuthAuthorizations.usedAt), - gt(mcpOAuthAuthorizations.expiresAt, new Date(now)), + db.transaction((tx) => + Effect.gen(function* () { + const claimed = yield* tx + .update(mcpOAuthAuthorizations) + .set({ usedAt: new Date(now) }) + .where( + and( + eq(mcpOAuthAuthorizations.requestIdHash, row.requestIdHash), + isNull(mcpOAuthAuthorizations.usedAt), + gt(mcpOAuthAuthorizations.expiresAt, new Date(now)), + ), + ) + .returning({ requestIdHash: mcpOAuthAuthorizations.requestIdHash }) + if (claimed.length === 0) return false + yield* tx.insert(apiKeys).values({ + id: values.accessKeyId, + orgId: row.approvedOrgId!, + name: row.clientName, + description: "OAuth access token for the Maple MCP server", + keyHash: hashApiKey(values.accessToken, apiKeyHmacKey), + keyPrefix: values.accessToken.slice(0, 12) + "...", + kind: "mcp", + scopes: row.scopes, + metadataJson: oauthKeyMetadata( + row.approvedRoles!, + row.clientId, + row.resource, ), - ) - .returning({ requestIdHash: mcpOAuthAuthorizations.requestIdHash }) - if (claimed.length === 0) return false - await tx.insert(apiKeys).values({ - id: values.accessKeyId, - orgId: row.approvedOrgId!, - name: row.clientName, - description: "OAuth access token for the Maple MCP server", - keyHash: hashApiKey(values.accessToken, apiKeyHmacKey), - keyPrefix: values.accessToken.slice(0, 12) + "...", - kind: "mcp", - scopes: row.scopes, - metadataJson: oauthKeyMetadata(row.approvedRoles!, row.clientId, row.resource), - expiresAt: new Date(now + ACCESS_TOKEN_TTL_MS), - createdAt: new Date(now), - createdBy: row.approvedUserId!, - createdByEmail: row.approvedUserEmail, - }) - await tx.insert(mcpOAuthRefreshTokens).values({ - id: values.refreshId, - tokenHash: hashOpaqueToken(values.refreshToken), - familyId: values.familyId, - clientId: row.clientId, - resource: row.resource, - scopes: row.scopes, - orgId: row.approvedOrgId!, - userId: row.approvedUserId!, - roles: row.approvedRoles!, - userEmail: row.approvedUserEmail, - accessKeyId: values.accessKeyId, - createdAt: new Date(now), - expiresAt: new Date(now + REFRESH_TOKEN_TTL_MS), - familyExpiresAt: new Date(now + REFRESH_FAMILY_ABSOLUTE_TTL_MS), - }) - return true - }), + expiresAt: new Date(now + ACCESS_TOKEN_TTL_MS), + createdAt: new Date(now), + createdBy: row.approvedUserId!, + createdByEmail: row.approvedUserEmail, + }) + yield* tx.insert(mcpOAuthRefreshTokens).values({ + id: values.refreshId, + tokenHash: hashOpaqueToken(values.refreshToken), + familyId: values.familyId, + clientId: row.clientId, + resource: row.resource, + scopes: row.scopes, + orgId: row.approvedOrgId!, + userId: row.approvedUserId!, + roles: row.approvedRoles!, + userEmail: row.approvedUserEmail, + accessKeyId: values.accessKeyId, + createdAt: new Date(now), + expiresAt: new Date(now + REFRESH_TOKEN_TTL_MS), + familyExpiresAt: new Date(now + REFRESH_FAMILY_ABSOLUTE_TTL_MS), + }) + return true + }), + ), ) .pipe(Effect.mapError(persistenceError)) if (!issued) return yield* protocolError("invalid_grant", "Authorization code was already used") @@ -817,61 +825,63 @@ export class McpOAuthService extends Context.Service< }) const outcome = yield* database .execute((db) => - db.transaction(async (tx) => { - const claimed = await tx - .update(mcpOAuthRefreshTokens) - .set({ revokedAt: new Date(now), replacedById: values.refreshId }) - .where( - and( - eq(mcpOAuthRefreshTokens.id, row.id), - isNull(mcpOAuthRefreshTokens.revokedAt), - gt(mcpOAuthRefreshTokens.expiresAt, new Date(now)), - ), - ) - .returning({ id: mcpOAuthRefreshTokens.id }) - if (claimed.length === 0) { - await revokeRefreshFamily(tx, row.familyId, new Date(now)) - return "reused" as const - } - await tx - .update(apiKeys) - .set({ revoked: true, revokedAt: new Date(now) }) - .where(eq(apiKeys.id, row.accessKeyId)) - await tx.insert(apiKeys).values({ - id: values.accessKeyId, - orgId: row.orgId, - name: "Maple MCP client", - description: "OAuth access token for the Maple MCP server", - keyHash: hashApiKey(values.accessToken, apiKeyHmacKey), - keyPrefix: values.accessToken.slice(0, 12) + "...", - kind: "mcp", - scopes: requestedScopes, - metadataJson: oauthKeyMetadata(row.roles, row.clientId, row.resource), - expiresAt: new Date(now + ACCESS_TOKEN_TTL_MS), - createdAt: new Date(now), - createdBy: row.userId, - createdByEmail: row.userEmail, - }) - await tx.insert(mcpOAuthRefreshTokens).values({ - id: values.refreshId, - tokenHash: hashOpaqueToken(values.refreshToken), - familyId: row.familyId, - clientId: row.clientId, - resource: row.resource, - scopes: requestedScopes, - orgId: row.orgId, - userId: row.userId, - roles: row.roles, - userEmail: row.userEmail, - accessKeyId: values.accessKeyId, - createdAt: new Date(now), - // Never extended past the rotating token's own window: the - // grant dies at whichever of the two comes first. - expiresAt: new Date(Math.min(now + REFRESH_TOKEN_TTL_MS, familyExpiresAtMs)), - familyExpiresAt: new Date(familyExpiresAtMs), - }) - return "issued" as const - }), + db.transaction((tx) => + Effect.gen(function* () { + const claimed = yield* tx + .update(mcpOAuthRefreshTokens) + .set({ revokedAt: new Date(now), replacedById: values.refreshId }) + .where( + and( + eq(mcpOAuthRefreshTokens.id, row.id), + isNull(mcpOAuthRefreshTokens.revokedAt), + gt(mcpOAuthRefreshTokens.expiresAt, new Date(now)), + ), + ) + .returning({ id: mcpOAuthRefreshTokens.id }) + if (claimed.length === 0) { + yield* revokeRefreshFamily(tx, row.familyId, new Date(now)) + return "reused" as const + } + yield* tx + .update(apiKeys) + .set({ revoked: true, revokedAt: new Date(now) }) + .where(eq(apiKeys.id, row.accessKeyId)) + yield* tx.insert(apiKeys).values({ + id: values.accessKeyId, + orgId: row.orgId, + name: "Maple MCP client", + description: "OAuth access token for the Maple MCP server", + keyHash: hashApiKey(values.accessToken, apiKeyHmacKey), + keyPrefix: values.accessToken.slice(0, 12) + "...", + kind: "mcp", + scopes: requestedScopes, + metadataJson: oauthKeyMetadata(row.roles, row.clientId, row.resource), + expiresAt: new Date(now + ACCESS_TOKEN_TTL_MS), + createdAt: new Date(now), + createdBy: row.userId, + createdByEmail: row.userEmail, + }) + yield* tx.insert(mcpOAuthRefreshTokens).values({ + id: values.refreshId, + tokenHash: hashOpaqueToken(values.refreshToken), + familyId: row.familyId, + clientId: row.clientId, + resource: row.resource, + scopes: requestedScopes, + orgId: row.orgId, + userId: row.userId, + roles: row.roles, + userEmail: row.userEmail, + accessKeyId: values.accessKeyId, + createdAt: new Date(now), + // Never extended past the rotating token's own window: the + // grant dies at whichever of the two comes first. + expiresAt: new Date(Math.min(now + REFRESH_TOKEN_TTL_MS, familyExpiresAtMs)), + familyExpiresAt: new Date(familyExpiresAtMs), + }) + return "issued" as const + }), + ), ) .pipe(Effect.mapError(persistenceError)) if (outcome === "reused") { @@ -922,21 +932,23 @@ export class McpOAuthService extends Context.Service< ) { yield* database .execute((db) => - db.transaction(async (tx) => { - const refreshRows = await tx - .select({ familyId: mcpOAuthRefreshTokens.familyId }) - .from(mcpOAuthRefreshTokens) - .where(eq(mcpOAuthRefreshTokens.accessKeyId, row.id)) - .limit(1) - if (refreshRows[0]) { - await revokeRefreshFamily(tx, refreshRows[0].familyId, new Date(now)) - return - } - await tx - .update(apiKeys) - .set({ revoked: true, revokedAt: new Date(now) }) - .where(eq(apiKeys.id, row.id)) - }), + db.transaction((tx) => + Effect.gen(function* () { + const refreshRows = yield* tx + .select({ familyId: mcpOAuthRefreshTokens.familyId }) + .from(mcpOAuthRefreshTokens) + .where(eq(mcpOAuthRefreshTokens.accessKeyId, row.id)) + .limit(1) + if (refreshRows[0]) { + yield* revokeRefreshFamily(tx, refreshRows[0].familyId, new Date(now)) + return + } + yield* tx + .update(apiKeys) + .set({ revoked: true, revokedAt: new Date(now) }) + .where(eq(apiKeys.id, row.id)) + }), + ), ) .pipe(Effect.mapError(persistenceError)) } diff --git a/packages/backend/src/services/auth/MembershipRevocationService.ts b/packages/backend/src/services/auth/MembershipRevocationService.ts index ed85cce11..5a45bdf49 100644 --- a/packages/backend/src/services/auth/MembershipRevocationService.ts +++ b/packages/backend/src/services/auth/MembershipRevocationService.ts @@ -229,56 +229,63 @@ const make = Effect.gen(function* () { // One transaction for the credential tables: a partial purge here is the // exact half-revoked state the whole fix exists to prevent. const credentials = yield* dbExecute((db) => - db.transaction(async (tx) => { - const mcpFamiliesRevoked = await revokeRefreshFamiliesForMember(tx, orgId, userId, revokedAt) - // After the families, so an MCP access key retired above is already - // `revoked` and is simply not claimed twice. - const revokedKeys = await tx - .update(apiKeys) - .set({ revoked: true, revokedAt }) - .where( - and( - ...(orgId === null ? [] : [eq(apiKeys.orgId, orgId)]), - eq(apiKeys.createdBy, userId), - eq(apiKeys.revoked, false), - ), - ) - .returning({ id: apiKeys.id }) - const cliDeleted = await tx - .delete(cliDeviceAuthorizations) - .where( - and( - ...(orgId === null ? [] : [eq(cliDeviceAuthorizations.approvedOrgId, orgId)]), - eq(cliDeviceAuthorizations.approvedUserId, userId), - ), + db.transaction((tx) => + Effect.gen(function* () { + const mcpFamiliesRevoked = yield* revokeRefreshFamiliesForMember( + tx, + orgId, + userId, + revokedAt, ) - .returning({ deviceCodeHash: cliDeviceAuthorizations.deviceCodeHash }) - const mcpAuthDeleted = await tx - .delete(mcpOAuthAuthorizations) - .where( - and( - ...(orgId === null ? [] : [eq(mcpOAuthAuthorizations.approvedOrgId, orgId)]), - eq(mcpOAuthAuthorizations.approvedUserId, userId), - ), - ) - .returning({ requestIdHash: mcpOAuthAuthorizations.requestIdHash }) - const devicesDeleted = await tx - .delete(mobileDevices) - .where( - and( - ...(orgId === null ? [] : [eq(mobileDevices.orgId, orgId)]), - eq(mobileDevices.userId, userId), - ), - ) - .returning({ id: mobileDevices.id }) - return { - apiKeysRevoked: revokedKeys.length, - mcpFamiliesRevoked, - cliAuthorizationsDeleted: cliDeleted.length, - mcpAuthorizationsDeleted: mcpAuthDeleted.length, - mobileDevicesDeleted: devicesDeleted.length, - } - }), + // After the families, so an MCP access key retired above is already + // `revoked` and is simply not claimed twice. + const revokedKeys = yield* tx + .update(apiKeys) + .set({ revoked: true, revokedAt }) + .where( + and( + ...(orgId === null ? [] : [eq(apiKeys.orgId, orgId)]), + eq(apiKeys.createdBy, userId), + eq(apiKeys.revoked, false), + ), + ) + .returning({ id: apiKeys.id }) + const cliDeleted = yield* tx + .delete(cliDeviceAuthorizations) + .where( + and( + ...(orgId === null ? [] : [eq(cliDeviceAuthorizations.approvedOrgId, orgId)]), + eq(cliDeviceAuthorizations.approvedUserId, userId), + ), + ) + .returning({ deviceCodeHash: cliDeviceAuthorizations.deviceCodeHash }) + const mcpAuthDeleted = yield* tx + .delete(mcpOAuthAuthorizations) + .where( + and( + ...(orgId === null ? [] : [eq(mcpOAuthAuthorizations.approvedOrgId, orgId)]), + eq(mcpOAuthAuthorizations.approvedUserId, userId), + ), + ) + .returning({ requestIdHash: mcpOAuthAuthorizations.requestIdHash }) + const devicesDeleted = yield* tx + .delete(mobileDevices) + .where( + and( + ...(orgId === null ? [] : [eq(mobileDevices.orgId, orgId)]), + eq(mobileDevices.userId, userId), + ), + ) + .returning({ id: mobileDevices.id }) + return { + apiKeysRevoked: revokedKeys.length, + mcpFamiliesRevoked, + cliAuthorizationsDeleted: cliDeleted.length, + mcpAuthorizationsDeleted: mcpAuthDeleted.length, + mobileDevicesDeleted: devicesDeleted.length, + } + }), + ), ) const emailDestinationsUpdated = yield* stripFromEmailDestinations(orgId, userId) @@ -324,33 +331,35 @@ const make = Effect.gen(function* () { const now = yield* Clock.currentTimeMillis const revokedAt = msToDate(now) const summary = yield* dbExecute((db) => - db.transaction(async (tx) => { - const live = await tx - .select({ id: apiKeys.id, metadataJson: apiKeys.metadataJson }) - .from(apiKeys) - .where( - and( - eq(apiKeys.orgId, orgId), - eq(apiKeys.createdBy, userId), - eq(apiKeys.revoked, false), - ), - ) - const stale = live - .filter((row) => { - const pinned = decodePinnedRoles(row.metadataJson) - return pinned._tag === "Some" && isAdmin(pinned.value.roles) - }) - .map((row) => row.id) - if (stale.length === 0) return { apiKeysRevoked: 0, mcpFamiliesRevoked: 0 } + db.transaction((tx) => + Effect.gen(function* () { + const live = yield* tx + .select({ id: apiKeys.id, metadataJson: apiKeys.metadataJson }) + .from(apiKeys) + .where( + and( + eq(apiKeys.orgId, orgId), + eq(apiKeys.createdBy, userId), + eq(apiKeys.revoked, false), + ), + ) + const stale = live + .filter((row) => { + const pinned = decodePinnedRoles(row.metadataJson) + return pinned._tag === "Some" && isAdmin(pinned.value.roles) + }) + .map((row) => row.id) + if (stale.length === 0) return { apiKeysRevoked: 0, mcpFamiliesRevoked: 0 } - const revoked = await tx - .update(apiKeys) - .set({ revoked: true, revokedAt }) - .where(and(inArray(apiKeys.id, stale), eq(apiKeys.revoked, false))) - .returning({ id: apiKeys.id }) - const mcpFamiliesRevoked = await revokeFamiliesForAccessKeys(tx, stale, revokedAt) - return { apiKeysRevoked: revoked.length, mcpFamiliesRevoked } - }), + const revoked = yield* tx + .update(apiKeys) + .set({ revoked: true, revokedAt }) + .where(and(inArray(apiKeys.id, stale), eq(apiKeys.revoked, false))) + .returning({ id: apiKeys.id }) + const mcpFamiliesRevoked = yield* revokeFamiliesForAccessKeys(tx, stale, revokedAt) + return { apiKeysRevoked: revoked.length, mcpFamiliesRevoked } + }), + ), ) yield* Effect.annotateCurrentSpan({ diff --git a/packages/backend/src/services/auth/mcp-oauth-family.ts b/packages/backend/src/services/auth/mcp-oauth-family.ts index e2e4e6c91..f07e87067 100644 --- a/packages/backend/src/services/auth/mcp-oauth-family.ts +++ b/packages/backend/src/services/auth/mcp-oauth-family.ts @@ -1,7 +1,9 @@ import { apiKeys, mcpOAuthRefreshTokens } from "@maple/db" -import type { MapleDatabaseTransaction } from "@maple/db/client" +import type { MapleDbLike } from "@maple/db/client" import type { ApiKeyId, OrgId, UserId } from "@maple/domain/http" import { and, eq, inArray, isNull } from "drizzle-orm" +import type { EffectDrizzleQueryError } from "drizzle-orm/effect-core" +import { Effect } from "effect" /** * Refresh-family revocation, shared rather than private to `McpOAuthService`. @@ -14,64 +16,75 @@ import { and, eq, inArray, isNull } from "drizzle-orm" */ /** Revoke a whole family and every access key it has ever minted. */ -export const revokeRefreshFamily = async ( - tx: MapleDatabaseTransaction, +export const revokeRefreshFamily = ( + tx: MapleDbLike, familyId: string, now: Date, -): Promise => { - const family = await tx - .select({ accessKeyId: mcpOAuthRefreshTokens.accessKeyId }) - .from(mcpOAuthRefreshTokens) - .where(eq(mcpOAuthRefreshTokens.familyId, familyId)) - await tx - .update(mcpOAuthRefreshTokens) - .set({ revokedAt: now }) - .where(and(eq(mcpOAuthRefreshTokens.familyId, familyId), isNull(mcpOAuthRefreshTokens.revokedAt))) - const accessKeyIds = family.map((item) => item.accessKeyId) - if (accessKeyIds.length > 0) { - await tx - .update(apiKeys) - .set({ revoked: true, revokedAt: now }) - .where(inArray(apiKeys.id, accessKeyIds)) - } -} +): Effect.Effect => + Effect.gen(function* () { + const family = yield* tx + .select({ accessKeyId: mcpOAuthRefreshTokens.accessKeyId }) + .from(mcpOAuthRefreshTokens) + .where(eq(mcpOAuthRefreshTokens.familyId, familyId)) + yield* tx + .update(mcpOAuthRefreshTokens) + .set({ revokedAt: now }) + .where(and(eq(mcpOAuthRefreshTokens.familyId, familyId), isNull(mcpOAuthRefreshTokens.revokedAt))) + const accessKeyIds = family.map((item) => item.accessKeyId) + if (accessKeyIds.length > 0) { + yield* tx + .update(apiKeys) + .set({ revoked: true, revokedAt: now }) + .where(inArray(apiKeys.id, accessKeyIds)) + } + }) + +const revokeFamilies = ( + tx: MapleDbLike, + rows: ReadonlyArray<{ readonly familyId: string }>, + now: Date, +): Effect.Effect => + Effect.gen(function* () { + const familyIds = [...new Set(rows.map((row) => row.familyId))] + for (const familyId of familyIds) yield* revokeRefreshFamily(tx, familyId, now) + return familyIds.length + }) /** * Revoke every family reachable from these access-key ids. This is the bridge * from "the user revoked the key they can see" to "the grant behind it dies". */ -export const revokeFamiliesForAccessKeys = async ( - tx: MapleDatabaseTransaction, +export const revokeFamiliesForAccessKeys = ( + tx: MapleDbLike, accessKeyIds: ReadonlyArray, now: Date, -): Promise => { - if (accessKeyIds.length === 0) return 0 - const rows = await tx - .select({ familyId: mcpOAuthRefreshTokens.familyId }) - .from(mcpOAuthRefreshTokens) - .where(inArray(mcpOAuthRefreshTokens.accessKeyId, [...accessKeyIds])) - const familyIds = [...new Set(rows.map((row) => row.familyId))] - for (const familyId of familyIds) await revokeRefreshFamily(tx, familyId, now) - return familyIds.length -} +): Effect.Effect => + accessKeyIds.length === 0 + ? Effect.succeed(0) + : Effect.flatMap( + tx + .select({ familyId: mcpOAuthRefreshTokens.familyId }) + .from(mcpOAuthRefreshTokens) + .where(inArray(mcpOAuthRefreshTokens.accessKeyId, [...accessKeyIds])), + (rows) => revokeFamilies(tx, rows, now), + ) /** Revoke every family a user holds in one organization, or in all of them when `orgId` is null. */ -export const revokeRefreshFamiliesForMember = async ( - tx: MapleDatabaseTransaction, +export const revokeRefreshFamiliesForMember = ( + tx: MapleDbLike, orgId: OrgId | null, userId: UserId, now: Date, -): Promise => { - const rows = await tx - .select({ familyId: mcpOAuthRefreshTokens.familyId }) - .from(mcpOAuthRefreshTokens) - .where( - and( - ...(orgId === null ? [] : [eq(mcpOAuthRefreshTokens.orgId, orgId)]), - eq(mcpOAuthRefreshTokens.userId, userId), +): Effect.Effect => + Effect.flatMap( + tx + .select({ familyId: mcpOAuthRefreshTokens.familyId }) + .from(mcpOAuthRefreshTokens) + .where( + and( + ...(orgId === null ? [] : [eq(mcpOAuthRefreshTokens.orgId, orgId)]), + eq(mcpOAuthRefreshTokens.userId, userId), + ), ), - ) - const familyIds = [...new Set(rows.map((row) => row.familyId))] - for (const familyId of familyIds) await revokeRefreshFamily(tx, familyId, now) - return familyIds.length -} + (rows) => revokeFamilies(tx, rows, now), + ) diff --git a/packages/backend/src/services/dashboards/SharedDashboardService.ts b/packages/backend/src/services/dashboards/SharedDashboardService.ts index 1a8ea5d3b..274a81c92 100644 --- a/packages/backend/src/services/dashboards/SharedDashboardService.ts +++ b/packages/backend/src/services/dashboards/SharedDashboardService.ts @@ -489,13 +489,24 @@ export class SharedDashboardService extends Context.Service< // per dashboard — is satisfied when the insert lands. const inserted = yield* database .execute((db) => - db.transaction(async (tx) => { - await tx - .update(dashboardShares) - .set({ revokedAt: msToDate(now), updatedAt: msToDate(now), updatedBy: userId }) - .where(and(eq(dashboardShares.orgId, orgId), eq(dashboardShares.id, existing.id))) - return tx.insert(dashboardShares).values(values).returning(shareColumns) - }), + db.transaction((tx) => + Effect.gen(function* () { + yield* tx + .update(dashboardShares) + .set({ + revokedAt: msToDate(now), + updatedAt: msToDate(now), + updatedBy: userId, + }) + .where( + and( + eq(dashboardShares.orgId, orgId), + eq(dashboardShares.id, existing.id), + ), + ) + return yield* tx.insert(dashboardShares).values(values).returning(shareColumns) + }), + ), ) .pipe(Effect.mapError(toPersistenceError)) diff --git a/packages/backend/src/services/errors/ErrorActorsService.test.ts b/packages/backend/src/services/errors/ErrorActorsService.test.ts index d0c6e9f91..78554c48e 100644 --- a/packages/backend/src/services/errors/ErrorActorsService.test.ts +++ b/packages/backend/src/services/errors/ErrorActorsService.test.ts @@ -29,21 +29,23 @@ const makeLayer = () => { describe("ErrorActorsService", () => { it.effect("retains the shared Postgres contention retry contract", () => Effect.gen(function* () { + const real = yield* Database let attempts = 0 const contention = new DatabaseError({ message: "could not serialize access", cause: Object.assign(new Error("serialization failure"), { code: "40001" }), }) + // Two contention failures, then the real database takes the call. const database: DatabaseApi = { - execute: () => + execute: (fn) => Effect.suspend(() => { attempts += 1 - return attempts < 3 ? Effect.fail(contention) : Effect.succeed("ok" as T) + return attempts < 3 ? Effect.fail(contention) : real.execute(fn) }), } const fiber = yield* Effect.forkChild( - makeErrorDatabaseExecute(database, "ErrorActorsService")(async () => "unused"), + makeErrorDatabaseExecute(database, "ErrorActorsService")(() => Effect.succeed("ok")), { startImmediately: true }, ) yield* TestClock.adjust("1 second") @@ -51,7 +53,7 @@ describe("ErrorActorsService", () => { assert.strictEqual(result, "ok") assert.strictEqual(attempts, 3) - }), + }).pipe(Effect.provide(createTestDb(createdDbs).layer)), ) it.effect("ensures one stable user actor", () => diff --git a/packages/backend/src/services/errors/ErrorIssueWorkflowService.test.ts b/packages/backend/src/services/errors/ErrorIssueWorkflowService.test.ts index fa2f8eec1..33e72fad5 100644 --- a/packages/backend/src/services/errors/ErrorIssueWorkflowService.test.ts +++ b/packages/backend/src/services/errors/ErrorIssueWorkflowService.test.ts @@ -16,9 +16,10 @@ import { errorIssueStates, issueEscalations, } from "@maple/db" -import type { MapleDatabaseTransaction } from "@maple/db/client" +import type { MapleTx } from "@maple/db/client" import { and, eq } from "drizzle-orm" -import { Database, type DatabaseApi, type DatabaseClient } from "@maple/backend/platform/DatabaseLive" +import { EffectDrizzleQueryError } from "drizzle-orm/effect-core" +import { Database, type DatabaseApi } from "@maple/backend/platform/DatabaseLive" import { cleanupTestDbs, createTestDb, type TestDb } from "@maple/backend/platform/test-pglite" import { AuditLogService } from "@maple/backend/services/audit/AuditLogService" import { ErrorActorsService } from "./ErrorActorsService" @@ -53,6 +54,35 @@ const makeLayer = () => { return Layer.mergeAll(workflow, actors).pipe(Layer.provideMerge(database)) } +/** + * A statement that fails when run, the way a dying connection fails one. It + * still accepts the builder chain (`.values`, `.onConflictDoNothing`, + * `.returning`) so the failure lands where the real statement would run, and + * it is a driver error so `Database.execute` absorbs it exactly as it would a + * real one. + */ +const failingStatement = (): Effect.Effect => { + const failure = Effect.fail( + new EffectDrizzleQueryError({ + query: "insert (sabotaged)", + params: [], + cause: new Error("injected insert failure"), + }), + ) + const chain: typeof failure = new Proxy(failure, { + get(target, property) { + if (property in target) { + // SAFETY: a Proxy get trap receives a key for its target; indexed access keeps + // the Effect's own property types while the runtime branch checks callability. + const value = target[property as keyof typeof target] + return typeof value === "function" ? value.bind(target) : value + } + return () => chain + }, + }) + return chain +} + /** * The client with one table's inserts sabotaged, inside and outside * transactions — a stand-in for the connection dying mid-write, which is what @@ -66,21 +96,14 @@ const failInsertOf = (client: T, failTable: unknown): T => const value = target[property as keyof T] if (typeof value !== "function") return value if (property === "insert") { - return (table: unknown) => { - if (table === failTable) throw new Error("injected insert failure") - return value.call(target, table) - } + return (table: unknown) => + table === failTable ? failingStatement() : value.call(target, table) } if (property === "transaction") { - return ( - callback: (tx: MapleDatabaseTransaction) => Promise, + return ( + callback: (tx: MapleTx) => Effect.Effect, ...rest: ReadonlyArray - ) => - value.call( - target, - (tx: MapleDatabaseTransaction) => callback(failInsertOf(tx, failTable)), - ...rest, - ) + ) => value.call(target, (tx: MapleTx) => callback(failInsertOf(tx, failTable)), ...rest) } return value.bind(target) }, @@ -93,8 +116,7 @@ const makeFaultyLayer = (failTable: unknown) => { Effect.gen(function* () { const real = yield* Database return { - execute: (fn: (db: DatabaseClient) => Promise) => - real.execute((db) => fn(failInsertOf(db, failTable))), + execute: (fn) => real.execute((db) => fn(failInsertOf(db, failTable))), } satisfies DatabaseApi }), ).pipe(Layer.provide(database)) diff --git a/packages/backend/src/services/errors/ErrorIssueWorkflowService.ts b/packages/backend/src/services/errors/ErrorIssueWorkflowService.ts index a7c8c9bd7..2bd2e2906 100644 --- a/packages/backend/src/services/errors/ErrorIssueWorkflowService.ts +++ b/packages/backend/src/services/errors/ErrorIssueWorkflowService.ts @@ -615,33 +615,37 @@ const make: Effect.Effect< // incident resolution or its timeline event could never be repaired: a // retry sees `fromState === toState` and returns before reaching them. yield* dbExecute((db) => - db.transaction(async (tx) => { - await tx - .update(errorIssues) - .set(update) - .where(and(eq(errorIssues.orgId, orgId), eq(errorIssues.id, row.id))) - if (toState === "done") { - await tx - .update(errorIncidents) - .set({ - status: "resolved", - resolvedAt: msToDate(timestamp), - updatedAt: msToDate(timestamp), - }) - .where( - and( - eq(errorIncidents.orgId, orgId), - eq(errorIncidents.issueId, row.id), - eq(errorIncidents.status, "open"), - ), - ) - await tx - .update(errorIssueStates) - .set({ openIncidentId: null, updatedAt: msToDate(timestamp) }) - .where(and(eq(errorIssueStates.orgId, orgId), eq(errorIssueStates.issueId, row.id))) - } - await tx.insert(errorIssueEvents).values(eventInsert) - }), + db.transaction((tx) => + Effect.gen(function* () { + yield* tx + .update(errorIssues) + .set(update) + .where(and(eq(errorIssues.orgId, orgId), eq(errorIssues.id, row.id))) + if (toState === "done") { + yield* tx + .update(errorIncidents) + .set({ + status: "resolved", + resolvedAt: msToDate(timestamp), + updatedAt: msToDate(timestamp), + }) + .where( + and( + eq(errorIncidents.orgId, orgId), + eq(errorIncidents.issueId, row.id), + eq(errorIncidents.status, "open"), + ), + ) + yield* tx + .update(errorIssueStates) + .set({ openIncidentId: null, updatedAt: msToDate(timestamp) }) + .where( + and(eq(errorIssueStates.orgId, orgId), eq(errorIssueStates.issueId, row.id)), + ) + } + yield* tx.insert(errorIssueEvents).values(eventInsert) + }), + ), ) if (actorId) { yield* recordEventAudit(orgId, row.id, actorId, "state_change", { fromState, toState }) @@ -869,23 +873,28 @@ const make: Effect.Effect< // could never page anyone — a retry sees the severity already stored and // returns before reaching the outbox insert. const severityRows = yield* dbExecute((db) => - db.transaction(async (tx) => { - const rows = await tx - .update(errorIssues) - .set({ - severity, - severitySource: nextSource, - updatedAt: msToDate(timestamp), - }) - .where(and(eq(errorIssues.orgId, orgId), eq(errorIssues.id, issueId))) - .returning(txidColumn) - if (Option.isSome(eventInsert)) - await tx.insert(errorIssueEvents).values(eventInsert.value) - if (Option.isSome(escalationInsert)) { - await tx.insert(issueEscalations).values(escalationInsert.value).onConflictDoNothing() - } - return rows - }), + db.transaction((tx) => + Effect.gen(function* () { + const rows = yield* tx + .update(errorIssues) + .set({ + severity, + severitySource: nextSource, + updatedAt: msToDate(timestamp), + }) + .where(and(eq(errorIssues.orgId, orgId), eq(errorIssues.id, issueId))) + .returning(txidColumn) + if (Option.isSome(eventInsert)) + yield* tx.insert(errorIssueEvents).values(eventInsert.value) + if (Option.isSome(escalationInsert)) { + yield* tx + .insert(issueEscalations) + .values(escalationInsert.value) + .onConflictDoNothing() + } + return rows + }), + ), ) if (Option.isSome(eventInsert)) { yield* recordEventAudit(orgId, issueId, actorId, "severity_change", {}) diff --git a/packages/backend/src/services/errors/ErrorsService.ts b/packages/backend/src/services/errors/ErrorsService.ts index 1b90bc5d2..1c3156fbf 100644 --- a/packages/backend/src/services/errors/ErrorsService.ts +++ b/packages/backend/src/services/errors/ErrorsService.ts @@ -936,53 +936,55 @@ const make: Effect.Effect< orgId: OrgId, nowMs: number, ) { - return yield* dbExecute(async (db) => { - const actorRows = await db - .select() - .from(actors) - .where( - and( - eq(actors.orgId, orgId), - eq(actors.type, "agent"), - eq(actors.agentName, SYSTEM_AGENT_NAME), - ), - ) - .limit(1) - const policyRows = await db - .select() - .from(errorNotificationPolicies) - .where(eq(errorNotificationPolicies.orgId, orgId)) - .limit(1) - const expiredLeases = await db - .select() - .from(errorIssues) - .where( - and( - eq(errorIssues.orgId, orgId), - isNotNull(errorIssues.leaseExpiresAt), - lt(errorIssues.leaseExpiresAt, new Date(nowMs)), - ), - ) - // Wake up wontfix issues whose snooze has elapsed, so that new events - // observed in this tick are treated as regressions rather than skipped. - const wakeCandidates = await db - .select() - .from(errorIssues) - .where( - and( - eq(errorIssues.orgId, orgId), - eq(errorIssues.workflowState, "wontfix"), - isNotNull(errorIssues.snoozeUntil), - lt(errorIssues.snoozeUntil, new Date(nowMs)), - ), - ) - return { - actorRow: actorRows[0] ?? null, - policyRow: policyRows[0] ?? null, - expiredLeases, - wakeCandidates, - } - }) + return yield* dbExecute((db) => + Effect.gen(function* () { + const actorRows = yield* db + .select() + .from(actors) + .where( + and( + eq(actors.orgId, orgId), + eq(actors.type, "agent"), + eq(actors.agentName, SYSTEM_AGENT_NAME), + ), + ) + .limit(1) + const policyRows = yield* db + .select() + .from(errorNotificationPolicies) + .where(eq(errorNotificationPolicies.orgId, orgId)) + .limit(1) + const expiredLeases = yield* db + .select() + .from(errorIssues) + .where( + and( + eq(errorIssues.orgId, orgId), + isNotNull(errorIssues.leaseExpiresAt), + lt(errorIssues.leaseExpiresAt, new Date(nowMs)), + ), + ) + // Wake up wontfix issues whose snooze has elapsed, so that new events + // observed in this tick are treated as regressions rather than skipped. + const wakeCandidates = yield* db + .select() + .from(errorIssues) + .where( + and( + eq(errorIssues.orgId, orgId), + eq(errorIssues.workflowState, "wontfix"), + isNotNull(errorIssues.snoozeUntil), + lt(errorIssues.snoozeUntil, new Date(nowMs)), + ), + ) + return { + actorRow: actorRows[0] ?? null, + policyRow: policyRows[0] ?? null, + expiredLeases, + wakeCandidates, + } + }), + ) }) const expireLeasesForOrg = Effect.fn("ErrorsService.expireLeases")(function* ( @@ -1030,54 +1032,56 @@ const make: Effect.Effect< ) { const claimToken = randomUUID() const initialProcessedThrough = new Date(cutoffMs - TICK_BOOTSTRAP_WINDOW_MS) - const claim = yield* dbExecute(async (db) => { - await db - .insert(errorTickStates) - .values({ - orgId, - processedThrough: initialProcessedThrough, - bootstrapCompleted: false, - claimToken: null, - claimExpiresAt: null, - updatedAt: new Date(nowMs), - }) - .onConflictDoNothing({ target: errorTickStates.orgId }) - - // `for update skip locked` is what makes the TTL a crash-recovery - // mechanism rather than a deadline. `persistErrorTickWindow` holds this - // row locked for the life of its transaction, so a legitimately slow - // apply is skipped here instead of being stolen and rolled back at its - // checkpoint — the retry-forever loop that stalls an org permanently. - // Only a dead worker leaves the row unlocked with a lapsed lease. - const claimable = db - .select({ orgId: errorTickStates.orgId }) - .from(errorTickStates) - .where( - and( - eq(errorTickStates.orgId, orgId), - lt(errorTickStates.processedThrough, new Date(cutoffMs)), - or( - isNull(errorTickStates.claimExpiresAt), - lte(errorTickStates.claimExpiresAt, new Date(nowMs)), + const claim = yield* dbExecute((db) => + Effect.gen(function* () { + yield* db + .insert(errorTickStates) + .values({ + orgId, + processedThrough: initialProcessedThrough, + bootstrapCompleted: false, + claimToken: null, + claimExpiresAt: null, + updatedAt: new Date(nowMs), + }) + .onConflictDoNothing({ target: errorTickStates.orgId }) + + // `for update skip locked` is what makes the TTL a crash-recovery + // mechanism rather than a deadline. `persistErrorTickWindow` holds this + // row locked for the life of its transaction, so a legitimately slow + // apply is skipped here instead of being stolen and rolled back at its + // checkpoint — the retry-forever loop that stalls an org permanently. + // Only a dead worker leaves the row unlocked with a lapsed lease. + const claimable = db + .select({ orgId: errorTickStates.orgId }) + .from(errorTickStates) + .where( + and( + eq(errorTickStates.orgId, orgId), + lt(errorTickStates.processedThrough, new Date(cutoffMs)), + or( + isNull(errorTickStates.claimExpiresAt), + lte(errorTickStates.claimExpiresAt, new Date(nowMs)), + ), ), - ), - ) - .for("update", { skipLocked: true }) - - const claimed = await db - .update(errorTickStates) - .set({ - claimToken, - claimExpiresAt: new Date(nowMs + TICK_CLAIM_TTL_MS), - updatedAt: new Date(nowMs), - }) - .where(inArray(errorTickStates.orgId, claimable)) - .returning({ - processedThrough: errorTickStates.processedThrough, - bootstrapCompleted: errorTickStates.bootstrapCompleted, - }) - return claimed - }) + ) + .for("update", { skipLocked: true }) + + const claimed = yield* db + .update(errorTickStates) + .set({ + claimToken, + claimExpiresAt: new Date(nowMs + TICK_CLAIM_TTL_MS), + updatedAt: new Date(nowMs), + }) + .where(inArray(errorTickStates.orgId, claimable)) + .returning({ + processedThrough: errorTickStates.processedThrough, + bootstrapCompleted: errorTickStates.bootstrapCompleted, + }) + return claimed + }), + ) const row = claim[0] if (!row) return null const windowStartMs = row.processedThrough.getTime() @@ -1267,6 +1271,14 @@ const make: Effect.Effect< : Effect.void, ), Effect.tapError(() => releaseTickClaim(orgId, tickWindow.claimToken, nowMs)), + // The window's own failures reach here as themselves; the tick's contract + // is the persistence error, which is what they rolled the window back as before. + Effect.catchTags({ + "@maple/api/services/ErrorTickClaimLostError": (error) => + Effect.fail(makePersistenceError(error)), + "@maple/api/services/ErrorTickUpsertMissingRowError": (error) => + Effect.fail(makePersistenceError(error)), + }), ) // Post-merge refutation. An issue sitting in `verifying` has a merged fix and diff --git a/packages/backend/src/services/errors/InvestigationService.test.ts b/packages/backend/src/services/errors/InvestigationService.test.ts index 619063c3d..f22cbe808 100644 --- a/packages/backend/src/services/errors/InvestigationService.test.ts +++ b/packages/backend/src/services/errors/InvestigationService.test.ts @@ -18,8 +18,6 @@ import { } from "@maple/domain/http" import { ErrorIssueId } from "@maple/domain/primitives" import { aiTriageSettings, errorIssues, errorIssueEvents, investigations } from "@maple/db" -import type { MaplePgClient } from "@maple/db/client" -import { createMaplePgliteClient } from "@maple/db/pglite" import { WorkerEnvironment } from "@maple/infra/worker-runtime" import { eq } from "drizzle-orm" import { Env } from "@maple/backend/platform/Env" @@ -521,15 +519,13 @@ describe("InvestigationService", () => { "submit_diagnosis writes the issue-linked ai_triage event exactly once across re-diagnosis", () => { const harness = makeHarness() - const raw = createMaplePgliteClient(harness.testDb.pglite) as MaplePgClient const issueId = asIssueId(randomUUID()) return Effect.gen(function* () { const service = yield* InvestigationService - // Forcing the service (above) builds the DB layer + runs migrations on the - // shared PGlite, so the raw client can now seed the linked error issue. + const database = yield* Database const now = new Date() - yield* Effect.promise(() => - raw.insert(errorIssues).values({ + yield* database.execute((db) => + db.insert(errorIssues).values({ id: issueId, orgId: ORG, fingerprintHash: "98765432109876543210", @@ -570,8 +566,8 @@ describe("InvestigationService", () => { new SubmitDiagnosisRequest({ report: sampleReport() }), ) - const events = yield* Effect.promise(() => - raw.select().from(errorIssueEvents).where(eq(errorIssueEvents.issueId, issueId)), + const events = yield* database.execute((db) => + db.select().from(errorIssueEvents).where(eq(errorIssueEvents.issueId, issueId)), ) const aiTriageEvents = events.filter((e) => e.type === "ai_triage") assert.strictEqual(aiTriageEvents.length, 1) diff --git a/packages/backend/src/services/errors/IssueFixVerificationService.test.ts b/packages/backend/src/services/errors/IssueFixVerificationService.test.ts index 58bd41560..9257ee57c 100644 --- a/packages/backend/src/services/errors/IssueFixVerificationService.test.ts +++ b/packages/backend/src/services/errors/IssueFixVerificationService.test.ts @@ -4,9 +4,10 @@ import { Cause, ConfigProvider, Effect, Exit, Layer, Option, Schema } from "effe import { OrgId, type PullRequestSummary, type WorkflowState } from "@maple/domain/http" import { ErrorIssueId } from "@maple/domain/primitives" import { errorIssues, errorIssueEvents, errorIssueVerifications } from "@maple/db" -import type { MapleDatabaseTransaction } from "@maple/db/client" +import type { MapleTx } from "@maple/db/client" +import { EffectDrizzleQueryError } from "drizzle-orm/effect-core" import { eq } from "drizzle-orm" -import { Database, type DatabaseApi, type DatabaseClient } from "@maple/backend/platform/DatabaseLive" +import { Database, type DatabaseApi } from "@maple/backend/platform/DatabaseLive" import { Env } from "@maple/backend/platform/Env" import { cleanupTestDbs, createTestDb, type TestDb } from "@maple/backend/platform/test-pglite" import { AuditLogService } from "@maple/backend/services/audit/AuditLogService" @@ -910,6 +911,35 @@ describe("dueVerifications", () => { ) }) +/** + * A statement that fails when run, the way a dying connection fails one. It + * still accepts the builder chain (`.values`, `.onConflictDoNothing`, + * `.returning`) so the failure lands where the real statement would run, and + * it is a driver error so `Database.execute` absorbs it exactly as it would a + * real one. + */ +const failingStatement = (): Effect.Effect => { + const failure = Effect.fail( + new EffectDrizzleQueryError({ + query: "insert (sabotaged)", + params: [], + cause: new Error("injected insert failure"), + }), + ) + const chain: typeof failure = new Proxy(failure, { + get(target, property) { + if (property in target) { + // SAFETY: a Proxy get trap receives a key for its target; indexed access keeps + // the Effect's own property types while the runtime branch checks callability. + const value = target[property as keyof typeof target] + return typeof value === "function" ? value.bind(target) : value + } + return () => chain + }, + }) + return chain +} + /** * The client with one table's inserts sabotaged, inside and outside * transactions — a stand-in for the connection dying mid-write, which @@ -923,21 +953,14 @@ const failInsertOf = (client: T, failTable: unknown): T => const value = target[property as keyof T] if (typeof value !== "function") return value if (property === "insert") { - return (table: unknown) => { - if (table === failTable) throw new Error("injected insert failure") - return value.call(target, table) - } + return (table: unknown) => + table === failTable ? failingStatement() : value.call(target, table) } if (property === "transaction") { - return ( - callback: (tx: MapleDatabaseTransaction) => Promise, + return ( + callback: (tx: MapleTx) => Effect.Effect, ...rest: ReadonlyArray - ) => - value.call( - target, - (tx: MapleDatabaseTransaction) => callback(failInsertOf(tx, failTable)), - ...rest, - ) + ) => value.call(target, (tx: MapleTx) => callback(failInsertOf(tx, failTable)), ...rest) } return value.bind(target) }, @@ -949,8 +972,7 @@ const failingEventInsertLayer = (base: Layer.Layer) => Effect.gen(function* () { const real = yield* Database return { - execute: (fn: (db: DatabaseClient) => Promise) => - real.execute((db) => fn(failInsertOf(db, errorIssueEvents))), + execute: (fn) => real.execute((db) => fn(failInsertOf(db, errorIssueEvents))), } satisfies DatabaseApi }), ).pipe(Layer.provide(base)) diff --git a/packages/backend/src/services/errors/IssueFixVerificationService.ts b/packages/backend/src/services/errors/IssueFixVerificationService.ts index 088768475..795dc0c3f 100644 --- a/packages/backend/src/services/errors/IssueFixVerificationService.ts +++ b/packages/backend/src/services/errors/IssueFixVerificationService.ts @@ -1113,24 +1113,26 @@ const make: Effect.Effect< }, ) const landed = yield* dbExecute((db) => - db.transaction(async (tx) => { - const updated = await tx - .update(errorIssueVerifications) - .set({ - status: "waiting", - attempt: row.attempt + 1, - verifyAfter: msToDate(nowMs + extendedMs), - verdict: null, - verdictNote: note, - investigationId: null, - updatedAt: msToDate(nowMs), - }) - .where(guard()) - .returning({ id: errorIssueVerifications.id }) - if (updated.length === 0) return false - await tx.insert(errorIssueEvents).values(retryEvent) - return true - }), + db.transaction((tx) => + Effect.gen(function* () { + const updated = yield* tx + .update(errorIssueVerifications) + .set({ + status: "waiting", + attempt: row.attempt + 1, + verifyAfter: msToDate(nowMs + extendedMs), + verdict: null, + verdictNote: note, + investigationId: null, + updatedAt: msToDate(nowMs), + }) + .where(guard()) + .returning({ id: errorIssueVerifications.id }) + if (updated.length === 0) return false + yield* tx.insert(errorIssueEvents).values(retryEvent) + return true + }), + ), ) if (!landed) yield* lostRace return @@ -1170,21 +1172,24 @@ const make: Effect.Effect< ) const landed = yield* dbExecute((db) => - db.transaction(async (tx) => { - const updated = await tx - .update(errorIssueVerifications) - .set({ - status, - verdict, - verdictNote: note, - updatedAt: msToDate(nowMs), - }) - .where(guard()) - .returning({ id: errorIssueVerifications.id }) - if (updated.length === 0) return false - if (Option.isSome(verdictEvent)) await tx.insert(errorIssueEvents).values(verdictEvent.value) - return true - }), + db.transaction((tx) => + Effect.gen(function* () { + const updated = yield* tx + .update(errorIssueVerifications) + .set({ + status, + verdict, + verdictNote: note, + updatedAt: msToDate(nowMs), + }) + .where(guard()) + .returning({ id: errorIssueVerifications.id }) + if (updated.length === 0) return false + if (Option.isSome(verdictEvent)) + yield* tx.insert(errorIssueEvents).values(verdictEvent.value) + return true + }), + ), ) if (!landed) { yield* lostRace diff --git a/packages/backend/src/services/errors/apply-diagnosis.ts b/packages/backend/src/services/errors/apply-diagnosis.ts index 54b4ff70a..d941467e2 100644 --- a/packages/backend/src/services/errors/apply-diagnosis.ts +++ b/packages/backend/src/services/errors/apply-diagnosis.ts @@ -13,7 +13,7 @@ * a summed fan-out). */ import { errorIssueEvents, investigations } from "@maple/db" -import type { MaplePgClient } from "@maple/db/client" +import type { MapleDb } from "@maple/db/client" import { InvestigationSubjectDiscriminator, type AiTriageResult, @@ -27,7 +27,10 @@ import { and, eq } from "drizzle-orm" import { Effect, identity, Option, Schema } from "effect" import { Database, type DatabaseError } from "@maple/backend/platform/DatabaseLive" import { makeDbExecute } from "@maple/backend/platform/db-execute" -import { applyTriageSeverity } from "@maple/backend/services/errors/issue-severity" +import { + applyTriageSeverity, + type TriageActorMissingError, +} from "@maple/backend/services/errors/issue-severity" const decodeIssueId = Schema.decodeUnknownSync(ErrorIssueId) const decodeEventId = Schema.decodeUnknownSync(ErrorIssueEventId) @@ -101,64 +104,67 @@ export interface ApplyDiagnosisInput { * transaction matters: a crash between them would leave an issue escalated with * no audit event explaining why. */ -const writeDiagnosis = async (db: MaplePgClient, input: ApplyDiagnosisInput): Promise => { - const confidence: InvestigationConfidence = input.report.confidence - const now = new Date(input.nowMs) +const writeDiagnosis = (db: MapleDb, input: ApplyDiagnosisInput) => + Effect.gen(function* () { + const confidence: InvestigationConfidence = input.report.confidence + const now = new Date(input.nowMs) - await db - .update(investigations) - .set({ - status: "diagnosed", - reportJson: input.report, - // Explicit null rather than `undefined`: an unassessed report must write - // "no severity" onto the row, not silently omit the column from the UPDATE - // and leave a stale one standing. - severity: input.report.severityAssessment ?? null, - confidence, - model: input.model, - inputTokens: input.inputTokens, - outputTokens: input.outputTokens, - error: null, - diagnosedAt: now, - updatedAt: now, - }) - .where(and(eq(investigations.orgId, input.orgId), eq(investigations.id, input.investigationId))) + yield* db + .update(investigations) + .set({ + status: "diagnosed", + reportJson: input.report, + // Explicit null rather than `undefined`: an unassessed report must write + // "no severity" onto the row, not silently omit the column from the UPDATE + // and leave a stale one standing. + severity: input.report.severityAssessment ?? null, + confidence, + model: input.model, + inputTokens: input.inputTokens, + outputTokens: input.outputTokens, + error: null, + diagnosedAt: now, + updatedAt: now, + }) + .where(and(eq(investigations.orgId, input.orgId), eq(investigations.id, input.investigationId))) - if (!input.issueId) return - // See `subjectType` above: a verification's report must not re-rank the issue. - if (Option.contains(input.subjectType, "fix_verification")) return - const decodedIssueId = decodeIssueId(input.issueId) - await db.transaction(async (tx) => { - const applied = await applyTriageSeverity(tx, { - orgId: input.orgId, - issueId: decodedIssueId, - runId: input.investigationId, - investigationId: input.investigationId, - severity: input.report.severityAssessment, - confidence, - timestamp: input.nowMs, - result: input.report, - }) - await tx - .insert(errorIssueEvents) - .values({ - id: decodeEventId(deterministicInvestigationEventId(input.investigationId)), - orgId: input.orgId, - issueId: decodedIssueId, - actorId: applied.actorId, - type: "ai_triage", - payloadJson: { + if (!input.issueId) return + // See `subjectType` above: a verification's report must not re-rank the issue. + if (Option.contains(input.subjectType, "fix_verification")) return + const decodedIssueId = decodeIssueId(input.issueId) + yield* db.transaction((tx) => + Effect.gen(function* () { + const applied = yield* applyTriageSeverity(tx, { + orgId: input.orgId, + issueId: decodedIssueId, + runId: input.investigationId, investigationId: input.investigationId, - summary: input.report.summary, - severityAssessment: input.report.severityAssessment ?? null, + severity: input.report.severityAssessment, confidence, - applied: applied.applied, - }, - createdAt: now, - }) - .onConflictDoNothing() + timestamp: input.nowMs, + result: input.report, + }) + yield* tx + .insert(errorIssueEvents) + .values({ + id: decodeEventId(deterministicInvestigationEventId(input.investigationId)), + orgId: input.orgId, + issueId: decodedIssueId, + actorId: applied.actorId, + type: "ai_triage", + payloadJson: { + investigationId: input.investigationId, + summary: input.report.summary, + severityAssessment: input.report.severityAssessment ?? null, + confidence, + applied: applied.applied, + }, + createdAt: now, + }) + .onConflictDoNothing() + }), + ) }) -} /** * Publish a diagnosis onto an investigation. @@ -170,11 +176,6 @@ const writeDiagnosis = async (db: MaplePgClient, input: ApplyDiagnosisInput): Pr * hold one (the request path, the fan-out workflow's per-run scope) keep using * exactly that connection. * - * The body below stays a Promise callback because that is the shape - * `Database.execute` takes — drizzle's `transaction` is a Promise API and there - * is no Effect-native equivalent in this repo. Wrapping it here is what keeps - * the seam at one place per logical call rather than at every call site. - * * Fails with the raw `DatabaseError` rather than a domain persistence error: * this write straddles two domains (it updates `investigations` and, when an * issue is linked, the error-issue tables), and its two callers map to @@ -184,7 +185,9 @@ const writeDiagnosis = async (db: MaplePgClient, input: ApplyDiagnosisInput): Pr */ export const applyDiagnosisWrites: ( input: ApplyDiagnosisInput, -) => Effect.Effect = Effect.fn("applyDiagnosisWrites")(function* (input) { +) => Effect.Effect = Effect.fn( + "applyDiagnosisWrites", +)(function* (input) { const database = yield* Database yield* makeDbExecute(database, "applyDiagnosisWrites", identity)((db) => writeDiagnosis(db, input)) }) @@ -222,27 +225,28 @@ export interface ApplyInconclusiveInput { * - `error: null` — the raw error string in that column is what the UI used to * render in a destructive box. The report replaces it. */ -const writeInconclusive = async (db: MaplePgClient, input: ApplyInconclusiveInput): Promise => { - const now = new Date(input.nowMs) - await db - .update(investigations) - .set({ - status: "inconclusive", - reportJson: input.report, - severity: null, - // Always low, whatever the report says. Nothing was established, and a - // partial that claims medium confidence in a lead is a promotion nobody - // made, reintroduced one layer down. - confidence: "low", - model: input.model, - inputTokens: input.inputTokens, - outputTokens: input.outputTokens, - error: null, - diagnosedAt: null, - updatedAt: now, - }) - .where(and(eq(investigations.orgId, input.orgId), eq(investigations.id, input.investigationId))) -} +const writeInconclusive = (db: MapleDb, input: ApplyInconclusiveInput) => + Effect.gen(function* () { + const now = new Date(input.nowMs) + yield* db + .update(investigations) + .set({ + status: "inconclusive", + reportJson: input.report, + severity: null, + // Always low, whatever the report says. Nothing was established, and a + // partial that claims medium confidence in a lead is a promotion nobody + // made, reintroduced one layer down. + confidence: "low", + model: input.model, + inputTokens: input.inputTokens, + outputTokens: input.outputTokens, + error: null, + diagnosedAt: null, + updatedAt: now, + }) + .where(and(eq(investigations.orgId, input.orgId), eq(investigations.id, input.investigationId))) + }) /** * Publish a partial result. See {@link applyInconclusiveWrites}' body above for diff --git a/packages/backend/src/services/errors/error-tick-persistence.ts b/packages/backend/src/services/errors/error-tick-persistence.ts index dabddd969..579d17916 100644 --- a/packages/backend/src/services/errors/error-tick-persistence.ts +++ b/packages/backend/src/services/errors/error-tick-persistence.ts @@ -11,7 +11,7 @@ import { type ErrorIssueRow, type ErrorNotificationPolicyRow, } from "@maple/db" -import type { DatabaseClient } from "@maple/backend/platform/DatabaseLive" +import type { MapleDb, MapleDbError, MapleTx } from "@maple/db/client" import { msToDate, msToSqlTimestamp } from "@maple/backend/platform/time" import type { ActorId, @@ -25,6 +25,7 @@ import type { } from "@maple/domain/http" import { FINGERPRINT_VERSION } from "@maple/domain/tinybird/fingerprint" import { and, eq, inArray, isNull, lt, sql } from "drizzle-orm" +import { Effect, Schema } from "effect" export interface ErrorTickScanRow { readonly fingerprintHash: string @@ -117,7 +118,7 @@ const REGRESSION_GRACE_MS = 60 * 60 * 1000 const MAX_TRACKED_VERSIONS = 50 /** The transaction handle `persistErrorTickWindow` runs its statements on. */ -type ErrorTickTransaction = Parameters[0]>[0] +type ErrorTickTransaction = MapleTx /** * Accumulate not-yet-promoted fingerprints and return the ones that have now @@ -126,45 +127,46 @@ type ErrorTickTransaction = Parameters * Promotion deletes the candidate row, so a fingerprint is counted once: the * Issue takes over from here and the next occurrence lands on it directly. */ -const promoteCandidates = async ( +const promoteCandidates = ( tx: ErrorTickTransaction, input: PersistErrorTickWindowInput, unknownRows: ReadonlyArray, windowEnd: Date, -): Promise> => { - if (unknownRows.length === 0) return [] - - const upserted = await tx - .insert(errorFingerprintCandidates) - .values( - unknownRows.map((row) => ({ - orgId: input.orgId, - fingerprintHash: row.fingerprintHash, - serviceName: row.serviceName, - exceptionType: row.exceptionType, - exceptionMessage: row.exceptionMessage, - errorLabel: row.errorLabel, - topFrame: row.topFrame, - serviceVersionsJson: mergeVersions([], row.serviceVersions), - occurrenceCount: row.count, - firstSeenAt: msToDate(row.firstSeenMs), - lastSeenAt: msToDate(row.lastSeenMs), - updatedAt: windowEnd, - })), - ) - .onConflictDoUpdate({ - target: [errorFingerprintCandidates.orgId, errorFingerprintCandidates.fingerprintHash], - set: { - serviceName: sql`excluded.service_name`, - exceptionType: sql`excluded.exception_type`, - exceptionMessage: sql`excluded.exception_message`, - errorLabel: sql`excluded.error_label`, - topFrame: sql`excluded.top_frame`, - // Union rather than overwrite: a candidate accumulates across ticks and - // the builds it was seen from seed the issue it is promoted into. The - // cap mirrors MAX_TRACKED_VERSIONS; which build is dropped past it is - // unordered, which is fine for a row that lives at most a day. - serviceVersionsJson: sql`( +): Effect.Effect, MapleDbError> => + Effect.gen(function* () { + if (unknownRows.length === 0) return [] + + const upserted = yield* tx + .insert(errorFingerprintCandidates) + .values( + unknownRows.map((row) => ({ + orgId: input.orgId, + fingerprintHash: row.fingerprintHash, + serviceName: row.serviceName, + exceptionType: row.exceptionType, + exceptionMessage: row.exceptionMessage, + errorLabel: row.errorLabel, + topFrame: row.topFrame, + serviceVersionsJson: mergeVersions([], row.serviceVersions), + occurrenceCount: row.count, + firstSeenAt: msToDate(row.firstSeenMs), + lastSeenAt: msToDate(row.lastSeenMs), + updatedAt: windowEnd, + })), + ) + .onConflictDoUpdate({ + target: [errorFingerprintCandidates.orgId, errorFingerprintCandidates.fingerprintHash], + set: { + serviceName: sql`excluded.service_name`, + exceptionType: sql`excluded.exception_type`, + exceptionMessage: sql`excluded.exception_message`, + errorLabel: sql`excluded.error_label`, + topFrame: sql`excluded.top_frame`, + // Union rather than overwrite: a candidate accumulates across ticks and + // the builds it was seen from seed the issue it is promoted into. The + // cap mirrors MAX_TRACKED_VERSIONS; which build is dropped past it is + // unordered, which is fine for a row that lives at most a day. + serviceVersionsJson: sql`( select coalesce(jsonb_agg(version), '[]'::jsonb) from ( select distinct value as version @@ -174,40 +176,40 @@ const promoteCandidates = async ( limit ${sql.raw(String(MAX_TRACKED_VERSIONS))} ) as versions )`, - occurrenceCount: sql`${errorFingerprintCandidates.occurrenceCount} + excluded.occurrence_count`, - firstSeenAt: sql`least(${errorFingerprintCandidates.firstSeenAt}, excluded.first_seen_at)`, - lastSeenAt: sql`greatest(${errorFingerprintCandidates.lastSeenAt}, excluded.last_seen_at)`, - updatedAt: sql`excluded.updated_at`, - }, - }) - .returning() - - const ready = upserted.filter((row) => row.occurrenceCount >= PROMOTION_MIN_OCCURRENCES) - if (ready.length === 0) return [] - - await tx.delete(errorFingerprintCandidates).where( - and( - eq(errorFingerprintCandidates.orgId, input.orgId), - inArray( - errorFingerprintCandidates.fingerprintHash, - ready.map((row) => row.fingerprintHash), + occurrenceCount: sql`${errorFingerprintCandidates.occurrenceCount} + excluded.occurrence_count`, + firstSeenAt: sql`least(${errorFingerprintCandidates.firstSeenAt}, excluded.first_seen_at)`, + lastSeenAt: sql`greatest(${errorFingerprintCandidates.lastSeenAt}, excluded.last_seen_at)`, + updatedAt: sql`excluded.updated_at`, + }, + }) + .returning() + + const ready = upserted.filter((row) => row.occurrenceCount >= PROMOTION_MIN_OCCURRENCES) + if (ready.length === 0) return [] + + yield* tx.delete(errorFingerprintCandidates).where( + and( + eq(errorFingerprintCandidates.orgId, input.orgId), + inArray( + errorFingerprintCandidates.fingerprintHash, + ready.map((row) => row.fingerprintHash), + ), ), - ), - ) + ) - return ready.map((row) => ({ - fingerprintHash: row.fingerprintHash, - serviceName: row.serviceName, - exceptionType: row.exceptionType, - exceptionMessage: row.exceptionMessage, - errorLabel: row.errorLabel, - topFrame: row.topFrame, - serviceVersions: row.serviceVersionsJson, - count: row.occurrenceCount, - firstSeenMs: row.firstSeenAt.getTime(), - lastSeenMs: row.lastSeenAt.getTime(), - })) -} + return ready.map((row) => ({ + fingerprintHash: row.fingerprintHash, + serviceName: row.serviceName, + exceptionType: row.exceptionType, + exceptionMessage: row.exceptionMessage, + errorLabel: row.errorLabel, + topFrame: row.topFrame, + serviceVersions: row.serviceVersionsJson, + count: row.occurrenceCount, + firstSeenMs: row.firstSeenAt.getTime(), + lastSeenMs: row.lastSeenAt.getTime(), + })) + }) /** * Whether an occurrence on a resolved issue is a genuine regression. @@ -264,28 +266,32 @@ const mergeVersions = ( return next.length > MAX_TRACKED_VERSIONS ? next.slice(next.length - MAX_TRACKED_VERSIONS) : next } -const CLAIM_LOST_MARKER = "[error-tick-claim-lost]" - -export const isErrorTickClaimLost = (error: { readonly message: string }): boolean => - error.message.includes(CLAIM_LOST_MARKER) - /** * The evaluator no longer holds this org's cursor row. Only reachable when the * worker stalled long enough for the crash-recovery TTL to elapse and another * invocation took over, so the window must roll back rather than double-apply. + * Failing the transaction's Effect with it is what rolls the window back. */ -// Database.execute rewraps transaction throws, so the marker-bearing native message is the intentional boundary. -// oxlint-disable-next-line effecttsgo/extends-native-error -export class ErrorTickClaimLost extends Error { - readonly _tag = "ErrorTickClaimLost" - constructor( - readonly orgId: string, - readonly stage: "preflight" | "checkpoint", - ) { - super(`${CLAIM_LOST_MARKER} claim for ${orgId} was lost before ${stage}`) - this.name = "ErrorTickClaimLost" - } -} +export class ErrorTickClaimLost extends Schema.TaggedError()( + "@maple/api/services/ErrorTickClaimLostError", + { + message: Schema.String, + orgId: Schema.String, + stage: Schema.Literals(["preflight", "checkpoint"]), + }, +) {} + +const claimLost = (orgId: string, stage: "preflight" | "checkpoint") => + new ErrorTickClaimLost({ message: `claim for ${orgId} was lost before ${stage}`, orgId, stage }) + +export const isErrorTickClaimLost = (error: unknown): error is ErrorTickClaimLost => + error instanceof ErrorTickClaimLost + +/** The batched issue upsert's RETURNING omitted a fingerprint it was handed. */ +export class ErrorTickUpsertMissingRow extends Schema.TaggedError()( + "@maple/api/services/ErrorTickUpsertMissingRowError", + { message: Schema.String, fingerprintHash: Schema.String }, +) {} /** * The scan groups by fingerprint, so duplicates are not expected — but a @@ -377,297 +383,316 @@ const buildNotificationRows = (input: PersistErrorTickWindowInput, payload: Noti * and a window that can never commit never advances the cursor either. */ export const persistErrorTickWindow = ( - db: DatabaseClient, + db: MapleDb, input: PersistErrorTickWindowInput, -): Promise => - db.transaction(async (tx) => { - const windowEnd = msToDate(input.windowEndMs) - // The raw `sql` bulk updates below bind this with no column type behind it, - // so it has to reach the driver as a string — see `msToSqlTimestamp`. - const windowEndSql = msToSqlTimestamp(input.windowEndMs) - - // Lock the cursor row for the life of the transaction. `claimTickWindow` - // skips locked rows, so an in-flight apply can no longer be stolen by the - // next cron: the TTL degrades to pure crash recovery. Without this a slow - // window is stolen, rolled back at the checkpoint, and retried at the same - // width forever — the org silently stops producing issues. - const held = await tx - .select({ orgId: errorTickStates.orgId }) - .from(errorTickStates) - .where( - and(eq(errorTickStates.orgId, input.orgId), eq(errorTickStates.claimToken, input.claimToken)), +): Effect.Effect< + PersistErrorTickWindowResult, + MapleDbError | ErrorTickClaimLost | ErrorTickUpsertMissingRow +> => + db.transaction((tx) => + Effect.gen(function* () { + const windowEnd = msToDate(input.windowEndMs) + // The raw `sql` bulk updates below bind this with no column type behind it, + // so it has to reach the driver as a string — see `msToSqlTimestamp`. + const windowEndSql = msToSqlTimestamp(input.windowEndMs) + + // Lock the cursor row for the life of the transaction. `claimTickWindow` + // skips locked rows, so an in-flight apply can no longer be stolen by the + // next cron: the TTL degrades to pure crash recovery. Without this a slow + // window is stolen, rolled back at the checkpoint, and retried at the same + // width forever — the org silently stops producing issues. + const held = yield* tx + .select({ orgId: errorTickStates.orgId }) + .from(errorTickStates) + .where( + and( + eq(errorTickStates.orgId, input.orgId), + eq(errorTickStates.claimToken, input.claimToken), + ), + ) + .for("update") + if (held.length === 0) return yield* Effect.fail(claimLost(input.orgId, "preflight")) + + const rows = mergeScanRows(input.rows) + const fingerprints = rows.map((row) => row.fingerprintHash) + const existingIssues = + fingerprints.length === 0 + ? [] + : yield* tx + .select() + .from(errorIssues) + .where( + and( + eq(errorIssues.orgId, input.orgId), + inArray(errorIssues.fingerprintHash, fingerprints), + ), + ) + const issueByFingerprint = new Map(existingIssues.map((row) => [row.fingerprintHash, row])) + + // The cursor row lock makes this evaluator the only writer of error-kind + // issues for the org, so the prefetch is authoritative: a fingerprint + // absent here is genuinely new. (Alert-kind issues use an `alert:` prefixed + // fingerprint and cannot collide.) + // A fingerprint with no Issue yet is not admitted on sight: it accumulates + // in the candidate table and is promoted only once it clears + // PROMOTION_MIN_OCCURRENCES. Promotion returns the ACCUMULATED totals, so a + // newly promoted issue opens with the occurrences it earned rather than + // just the ones in this window. + const promoted = yield* promoteCandidates( + tx, + input, + rows.filter((row) => !issueByFingerprint.has(row.fingerprintHash)), + windowEnd, ) - .for("update") - if (held.length === 0) throw new ErrorTickClaimLost(input.orgId, "preflight") - - const rows = mergeScanRows(input.rows) - const fingerprints = rows.map((row) => row.fingerprintHash) - const existingIssues = - fingerprints.length === 0 - ? [] - : await tx - .select() - .from(errorIssues) - .where( - and( - eq(errorIssues.orgId, input.orgId), - inArray(errorIssues.fingerprintHash, fingerprints), + const promotedByFingerprint = new Map(promoted.map((row) => [row.fingerprintHash, row])) + + const applicable: Array<{ + readonly row: ErrorTickScanRow + readonly prior: ErrorIssueRow | undefined + readonly regression: boolean + readonly suppressed: boolean + }> = [] + for (const scanned of rows) { + const prior = issueByFingerprint.get(scanned.fingerprintHash) + const promotedRow = promotedByFingerprint.get(scanned.fingerprintHash) + // A promoted row carries the candidate's ACCUMULATED totals, which the + // upsert below writes verbatim. Its build set still has to pick up the + // builds seen in the promoting window itself. + const row = + promotedRow === undefined + ? scanned + : { + ...promotedRow, + serviceVersions: mergeVersions( + promotedRow.serviceVersions, + scanned.serviceVersions, + ), + } + + // Still short of the promotion threshold — it stays a candidate. + if (prior === undefined && !promotedByFingerprint.has(scanned.fingerprintHash)) continue + + // `wontfix` suppresses the issue until its snooze elapses; a null snooze + // means suppressed indefinitely. + if ( + prior?.workflowState === "wontfix" && + (prior.snoozeUntil == null || prior.snoozeUntil.getTime() > input.windowEndMs) + ) { + continue + } + const regression = prior !== undefined && isRegression(prior, row) + // An occurrence on a resolved issue that is NOT a regression is an old + // client still running the pre-fix build. Its counters are still truthful + // — the event really did happen — but it is not new work: it must not open + // an incident, notify a destination, or start an investigation. Before the + // regression rule existed every such occurrence reopened the issue, so the + // incident always had a reopened issue under it; now the reopen can be + // skipped, and without this flag the incident path would still fire and + // re-alert on a bug that is already fixed. + const suppressed = prior?.workflowState === "done" && !regression + applicable.push({ row, prior, regression, suppressed }) + } + + const events: Array = [] + const notifications: Array[number]> = [] + + const observed: Array<{ + readonly issueId: ErrorIssueId + readonly row: ErrorTickScanRow + readonly wasRegression: boolean + readonly priorSeverity: IssueSeverity | null + }> = [] + + if (applicable.length > 0) { + // One upsert covers new, ongoing, and regressed fingerprints. The SET + // expressions all read the pre-update row, so the regression flip and the + // counter accumulation stay consistent with each other. + const upserted = yield* tx + .insert(errorIssues) + .values( + applicable.map(({ row, prior }) => ({ + id: input.makeIssueId(), + orgId: input.orgId, + fingerprintHash: row.fingerprintHash, + fingerprintVersion: FINGERPRINT_VERSION, + serviceName: row.serviceName, + exceptionType: row.exceptionType, + exceptionMessage: row.exceptionMessage, + errorLabel: row.errorLabel, + topFrame: row.topFrame, + workflowState: "triage" as const, + priority: 3, + assignedActorId: null, + leaseHolderActorId: null, + leaseExpiresAt: null, + claimedAt: null, + notes: null, + firstSeenAt: msToDate(row.firstSeenMs), + lastSeenAt: msToDate(row.lastSeenMs), + occurrenceCount: row.count, + seenVersionsJson: mergeVersions( + prior?.seenVersionsJson ?? [], + row.serviceVersions, ), + resolvedAt: null, + resolvedByActorId: null, + snoozeUntil: null, + archivedAt: null, + createdAt: windowEnd, + updatedAt: windowEnd, + })), + ) + .onConflictDoUpdate({ + target: [errorIssues.orgId, errorIssues.fingerprintHash], + set: { + fingerprintVersion: sql`excluded.fingerprint_version`, + serviceName: sql`excluded.service_name`, + exceptionType: sql`excluded.exception_type`, + exceptionMessage: sql`excluded.exception_message`, + errorLabel: sql`excluded.error_label`, + topFrame: sql`excluded.top_frame`, + firstSeenAt: sql`least(${errorIssues.firstSeenAt}, excluded.first_seen_at)`, + lastSeenAt: sql`greatest(${errorIssues.lastSeenAt}, excluded.last_seen_at)`, + occurrenceCount: sql`${errorIssues.occurrenceCount} + excluded.occurrence_count`, + // The merged set is computed against the pre-update row and arrives + // via the INSERT values, so this stays one statement. + seenVersionsJson: sql`excluded.seen_versions_json`, + // Reopening is NOT decided here. It used to be + // `case when workflow_state = 'done' then 'triage'`, which reopened a + // fixed issue on any occurrence at all — including one from a build + // that predates the fix. That needs the issue's resolved-build set, + // which SQL cannot reach from `excluded`, so `isRegression` decides in + // TypeScript and the targeted update below applies it. + updatedAt: sql`excluded.updated_at`, + }, + }) + .returning({ + id: errorIssues.id, + fingerprintHash: errorIssues.fingerprintHash, + }) + + const idByFingerprint = new Map(upserted.map((row) => [row.fingerprintHash, row.id])) + + for (const { row, prior, regression, suppressed } of applicable) { + const issueId = idByFingerprint.get(row.fingerprintHash) + if (!issueId) { + return yield* Effect.fail( + new ErrorTickUpsertMissingRow({ + message: `Error issue upsert returned no row for ${row.fingerprintHash}`, + fingerprintHash: row.fingerprintHash, + }), ) - const issueByFingerprint = new Map(existingIssues.map((row) => [row.fingerprintHash, row])) - - // The cursor row lock makes this evaluator the only writer of error-kind - // issues for the org, so the prefetch is authoritative: a fingerprint - // absent here is genuinely new. (Alert-kind issues use an `alert:` prefixed - // fingerprint and cannot collide.) - // A fingerprint with no Issue yet is not admitted on sight: it accumulates - // in the candidate table and is promoted only once it clears - // PROMOTION_MIN_OCCURRENCES. Promotion returns the ACCUMULATED totals, so a - // newly promoted issue opens with the occurrences it earned rather than - // just the ones in this window. - const promoted = await promoteCandidates( - tx, - input, - rows.filter((row) => !issueByFingerprint.has(row.fingerprintHash)), - windowEnd, - ) - const promotedByFingerprint = new Map(promoted.map((row) => [row.fingerprintHash, row])) - - const applicable: Array<{ - readonly row: ErrorTickScanRow - readonly prior: ErrorIssueRow | undefined - readonly regression: boolean - readonly suppressed: boolean - }> = [] - for (const scanned of rows) { - const prior = issueByFingerprint.get(scanned.fingerprintHash) - const promotedRow = promotedByFingerprint.get(scanned.fingerprintHash) - // A promoted row carries the candidate's ACCUMULATED totals, which the - // upsert below writes verbatim. Its build set still has to pick up the - // builds seen in the promoting window itself. - const row = - promotedRow === undefined - ? scanned - : { - ...promotedRow, - serviceVersions: mergeVersions( - promotedRow.serviceVersions, - scanned.serviceVersions, - ), - } + } - // Still short of the promotion threshold — it stays a candidate. - if (prior === undefined && !promotedByFingerprint.has(scanned.fingerprintHash)) continue + if (!prior) { + events.push( + buildEvent(input, issueId, "created", { + toState: "triage", + payload: { + serviceName: row.serviceName, + exceptionType: row.exceptionType, + occurrenceCount: row.count, + }, + }), + ) + } - // `wontfix` suppresses the issue until its snooze elapses; a null snooze - // means suppressed indefinitely. - if ( - prior?.workflowState === "wontfix" && - (prior.snoozeUntil == null || prior.snoozeUntil.getTime() > input.windowEndMs) - ) { - continue - } - const regression = prior !== undefined && isRegression(prior, row) - // An occurrence on a resolved issue that is NOT a regression is an old - // client still running the pre-fix build. Its counters are still truthful - // — the event really did happen — but it is not new work: it must not open - // an incident, notify a destination, or start an investigation. Before the - // regression rule existed every such occurrence reopened the issue, so the - // incident always had a reopened issue under it; now the reopen can be - // skipped, and without this flag the incident path would still fire and - // re-alert on a bug that is already fixed. - const suppressed = prior?.workflowState === "done" && !regression - applicable.push({ row, prior, regression, suppressed }) - } - - const events: Array = [] - const notifications: Array[number]> = [] - - const observed: Array<{ - readonly issueId: ErrorIssueId - readonly row: ErrorTickScanRow - readonly wasRegression: boolean - readonly priorSeverity: IssueSeverity | null - }> = [] - - if (applicable.length > 0) { - // One upsert covers new, ongoing, and regressed fingerprints. The SET - // expressions all read the pre-update row, so the regression flip and the - // counter accumulation stay consistent with each other. - const upserted = await tx - .insert(errorIssues) - .values( - applicable.map(({ row, prior }) => ({ - id: input.makeIssueId(), - orgId: input.orgId, - fingerprintHash: row.fingerprintHash, - fingerprintVersion: FINGERPRINT_VERSION, - serviceName: row.serviceName, - exceptionType: row.exceptionType, - exceptionMessage: row.exceptionMessage, - errorLabel: row.errorLabel, - topFrame: row.topFrame, - workflowState: "triage" as const, - priority: 3, - assignedActorId: null, - leaseHolderActorId: null, - leaseExpiresAt: null, - claimedAt: null, - notes: null, - firstSeenAt: msToDate(row.firstSeenMs), - lastSeenAt: msToDate(row.lastSeenMs), - occurrenceCount: row.count, - seenVersionsJson: mergeVersions(prior?.seenVersionsJson ?? [], row.serviceVersions), - resolvedAt: null, - resolvedByActorId: null, - snoozeUntil: null, - archivedAt: null, - createdAt: windowEnd, - updatedAt: windowEnd, - })), - ) - .onConflictDoUpdate({ - target: [errorIssues.orgId, errorIssues.fingerprintHash], - set: { - fingerprintVersion: sql`excluded.fingerprint_version`, - serviceName: sql`excluded.service_name`, - exceptionType: sql`excluded.exception_type`, - exceptionMessage: sql`excluded.exception_message`, - errorLabel: sql`excluded.error_label`, - topFrame: sql`excluded.top_frame`, - firstSeenAt: sql`least(${errorIssues.firstSeenAt}, excluded.first_seen_at)`, - lastSeenAt: sql`greatest(${errorIssues.lastSeenAt}, excluded.last_seen_at)`, - occurrenceCount: sql`${errorIssues.occurrenceCount} + excluded.occurrence_count`, - // The merged set is computed against the pre-update row and arrives - // via the INSERT values, so this stays one statement. - seenVersionsJson: sql`excluded.seen_versions_json`, - // Reopening is NOT decided here. It used to be - // `case when workflow_state = 'done' then 'triage'`, which reopened a - // fixed issue on any occurrence at all — including one from a build - // that predates the fix. That needs the issue's resolved-build set, - // which SQL cannot reach from `excluded`, so `isRegression` decides in - // TypeScript and the targeted update below applies it. - updatedAt: sql`excluded.updated_at`, - }, - }) - .returning({ - id: errorIssues.id, - fingerprintHash: errorIssues.fingerprintHash, - }) + const wasRegression = regression + if (wasRegression) { + events.push( + buildEvent(input, issueId, "state_change", { + fromState: "done", + toState: "regressed", + payload: { viaRegression: true }, + }), + buildEvent(input, issueId, "regression", { + payload: { occurrenceCount: row.count }, + }), + ) + } - const idByFingerprint = new Map(upserted.map((row) => [row.fingerprintHash, row.id])) - - for (const { row, prior, regression, suppressed } of applicable) { - const issueId = idByFingerprint.get(row.fingerprintHash) - if (!issueId) throw new Error(`Error issue upsert returned no row for ${row.fingerprintHash}`) - - if (!prior) { - events.push( - buildEvent(input, issueId, "created", { - toState: "triage", - payload: { - serviceName: row.serviceName, - exceptionType: row.exceptionType, - occurrenceCount: row.count, - }, - }), - ) - } + // Counters were accumulated by the upsert above; everything downstream + // of `observed` is the incident/notification/investigation path, which + // a pre-fix straggler must not enter. + if (suppressed) continue - const wasRegression = regression - if (wasRegression) { - events.push( - buildEvent(input, issueId, "state_change", { - fromState: "done", - toState: "regressed", - payload: { viaRegression: true }, - }), - buildEvent(input, issueId, "regression", { - payload: { occurrenceCount: row.count }, - }), - ) + observed.push({ + issueId, + row, + wasRegression, + priorSeverity: prior?.severity ?? null, + }) } - // Counters were accumulated by the upsert above; everything downstream - // of `observed` is the incident/notification/investigation path, which - // a pre-fix straggler must not enter. - if (suppressed) continue - - observed.push({ - issueId, - row, - wasRegression, - priorSeverity: prior?.severity ?? null, - }) + // Apply the reopen decided above. Reopening lands in `regressed`, not + // `triage`: an issue that was fixed and came back is not the same thing + // as one nobody has looked at, and flattening the two is what let the + // same bug be picked up and fixed again from scratch. + const regressedIds = observed + .filter((entry) => entry.wasRegression) + .map((entry) => entry.issueId) + if (regressedIds.length > 0) { + yield* tx + .update(errorIssues) + .set({ + workflowState: "regressed", + resolvedAt: null, + resolvedByActorId: null, + lastRegressedAt: windowEnd, + regressionCount: sql`${errorIssues.regressionCount} + 1`, + updatedAt: windowEnd, + }) + .where(and(eq(errorIssues.orgId, input.orgId), inArray(errorIssues.id, regressedIds))) + } } - // Apply the reopen decided above. Reopening lands in `regressed`, not - // `triage`: an issue that was fixed and came back is not the same thing - // as one nobody has looked at, and flattening the two is what let the - // same bug be picked up and fixed again from scratch. - const regressedIds = observed.filter((entry) => entry.wasRegression).map((entry) => entry.issueId) - if (regressedIds.length > 0) { - await tx - .update(errorIssues) - .set({ - workflowState: "regressed", - resolvedAt: null, - resolvedByActorId: null, - lastRegressedAt: windowEnd, - regressionCount: sql`${errorIssues.regressionCount} + 1`, - updatedAt: windowEnd, + const observedIssueIds = observed.map((entry) => entry.issueId) + const states = + observedIssueIds.length === 0 + ? [] + : yield* tx + .select() + .from(errorIssueStates) + .where( + and( + eq(errorIssueStates.orgId, input.orgId), + inArray(errorIssueStates.issueId, observedIssueIds), + ), + ) + const stateByIssue = new Map(states.map((row) => [row.issueId, row])) + + const refreshing: Array<{ + readonly incidentId: ErrorIncidentId + readonly issueId: ErrorIssueId + readonly row: ErrorTickScanRow + }> = [] + const claiming: Array<{ + readonly incidentId: ErrorIncidentId + readonly reason: ErrorIncidentReason + readonly entry: (typeof observed)[number] + }> = [] + for (const entry of observed) { + const openIncidentId = stateByIssue.get(entry.issueId)?.openIncidentId + if (openIncidentId) { + refreshing.push({ incidentId: openIncidentId, issueId: entry.issueId, row: entry.row }) + } else { + claiming.push({ + incidentId: input.makeIncidentId(), + reason: entry.wasRegression ? "regression" : "first_seen", + entry, }) - .where(and(eq(errorIssues.orgId, input.orgId), inArray(errorIssues.id, regressedIds))) - } - } - - const observedIssueIds = observed.map((entry) => entry.issueId) - const states = - observedIssueIds.length === 0 - ? [] - : await tx - .select() - .from(errorIssueStates) - .where( - and( - eq(errorIssueStates.orgId, input.orgId), - inArray(errorIssueStates.issueId, observedIssueIds), - ), - ) - const stateByIssue = new Map(states.map((row) => [row.issueId, row])) - - const refreshing: Array<{ - readonly incidentId: ErrorIncidentId - readonly issueId: ErrorIssueId - readonly row: ErrorTickScanRow - }> = [] - const claiming: Array<{ - readonly incidentId: ErrorIncidentId - readonly reason: ErrorIncidentReason - readonly entry: (typeof observed)[number] - }> = [] - for (const entry of observed) { - const openIncidentId = stateByIssue.get(entry.issueId)?.openIncidentId - if (openIncidentId) { - refreshing.push({ incidentId: openIncidentId, issueId: entry.issueId, row: entry.row }) - } else { - claiming.push({ - incidentId: input.makeIncidentId(), - reason: entry.wasRegression ? "regression" : "first_seen", - entry, - }) + } } - } - if (refreshing.length > 0) { - const incidentValues = sql.join( - refreshing.map( - (item) => - sql`(${item.incidentId}::text, ${msToSqlTimestamp(item.row.lastSeenMs)}::timestamptz, ${item.row.count}::integer)`, - ), - sql`, `, - ) - await tx.execute(sql` + if (refreshing.length > 0) { + const incidentValues = sql.join( + refreshing.map( + (item) => + sql`(${item.incidentId}::text, ${msToSqlTimestamp(item.row.lastSeenMs)}::timestamptz, ${item.row.count}::integer)`, + ), + sql`, `, + ) + yield* tx.execute(sql` update ${errorIncidents} as t set last_triggered_at = greatest(t.last_triggered_at, v.last_seen), occurrence_count = t.occurrence_count + v.cnt, @@ -676,14 +701,14 @@ export const persistErrorTickWindow = ( where t.id = v.incident_id `) - const stateValues = sql.join( - refreshing.map( - (item) => - sql`(${item.issueId}::text, ${msToSqlTimestamp(item.row.lastSeenMs)}::timestamptz)`, - ), - sql`, `, - ) - await tx.execute(sql` + const stateValues = sql.join( + refreshing.map( + (item) => + sql`(${item.issueId}::text, ${msToSqlTimestamp(item.row.lastSeenMs)}::timestamptz)`, + ), + sql`, `, + ) + yield* tx.execute(sql` update ${errorIssueStates} as t set last_observed_occurrence_at = greatest(t.last_observed_occurrence_at, v.last_seen), last_evaluated_at = ${windowEndSql}::timestamptz, @@ -691,203 +716,214 @@ export const persistErrorTickWindow = ( from (values ${stateValues}) as v(issue_id, last_seen) where t.org_id = ${input.orgId} and t.issue_id = v.issue_id `) - } - - const pendingTriages: PendingErrorTriage[] = [] - let incidentsOpened = 0 - - if (claiming.length > 0) { - // The conditional upsert is the single-open-incident guard: a row whose - // `open_incident_id` is already set fails the `setWhere` and is therefore - // absent from RETURNING, so the claimed set is exactly what came back. - const claimed = await tx - .insert(errorIssueStates) - .values( - claiming.map((item) => ({ - orgId: input.orgId, - issueId: item.entry.issueId, - lastObservedOccurrenceAt: msToDate(item.entry.row.lastSeenMs), - lastEvaluatedAt: windowEnd, - openIncidentId: item.incidentId, - updatedAt: windowEnd, - })), - ) - .onConflictDoUpdate({ - target: [errorIssueStates.orgId, errorIssueStates.issueId], - set: { - lastObservedOccurrenceAt: sql`excluded.last_observed_occurrence_at`, - lastEvaluatedAt: sql`excluded.last_evaluated_at`, - openIncidentId: sql`excluded.open_incident_id`, - updatedAt: sql`excluded.updated_at`, - }, - setWhere: isNull(errorIssueStates.openIncidentId), - }) - .returning({ - issueId: errorIssueStates.issueId, - openIncidentId: errorIssueStates.openIncidentId, - }) + } - const claimedIncidentByIssue = new Map(claimed.map((row) => [row.issueId, row.openIncidentId])) - const opened = claiming.filter( - (item) => claimedIncidentByIssue.get(item.entry.issueId) === item.incidentId, - ) + const pendingTriages: PendingErrorTriage[] = [] + let incidentsOpened = 0 + + if (claiming.length > 0) { + // The conditional upsert is the single-open-incident guard: a row whose + // `open_incident_id` is already set fails the `setWhere` and is therefore + // absent from RETURNING, so the claimed set is exactly what came back. + const claimed = yield* tx + .insert(errorIssueStates) + .values( + claiming.map((item) => ({ + orgId: input.orgId, + issueId: item.entry.issueId, + lastObservedOccurrenceAt: msToDate(item.entry.row.lastSeenMs), + lastEvaluatedAt: windowEnd, + openIncidentId: item.incidentId, + updatedAt: windowEnd, + })), + ) + .onConflictDoUpdate({ + target: [errorIssueStates.orgId, errorIssueStates.issueId], + set: { + lastObservedOccurrenceAt: sql`excluded.last_observed_occurrence_at`, + lastEvaluatedAt: sql`excluded.last_evaluated_at`, + openIncidentId: sql`excluded.open_incident_id`, + updatedAt: sql`excluded.updated_at`, + }, + setWhere: isNull(errorIssueStates.openIncidentId), + }) + .returning({ + issueId: errorIssueStates.issueId, + openIncidentId: errorIssueStates.openIncidentId, + }) - if (opened.length > 0) { - await tx.insert(errorIncidents).values( - opened.map((item) => ({ - id: item.incidentId, - orgId: input.orgId, - issueId: item.entry.issueId, - status: "open" as const, - reason: item.reason, - firstTriggeredAt: msToDate(item.entry.row.firstSeenMs), - lastTriggeredAt: msToDate(item.entry.row.lastSeenMs), - resolvedAt: null, - occurrenceCount: item.entry.row.count, - createdAt: windowEnd, - updatedAt: windowEnd, - })), + const claimedIncidentByIssue = new Map( + claimed.map((row) => [row.issueId, row.openIncidentId]), ) - incidentsOpened = opened.length - - for (const item of opened) { - if (openNotificationsEnabled(input.policy, item.reason, item.entry.row.count)) { - notifications.push( - ...buildNotificationRows(input, { - kind: "open", - issueId: item.entry.issueId, - incidentId: item.incidentId, - serviceName: item.entry.row.serviceName, - exceptionType: item.entry.row.exceptionType, - severity: input.policy.severity, - threshold: input.policy.minOccurrenceCount, - count: item.entry.row.count, - }), - ) + const opened = claiming.filter( + (item) => claimedIncidentByIssue.get(item.entry.issueId) === item.incidentId, + ) + + if (opened.length > 0) { + yield* tx.insert(errorIncidents).values( + opened.map((item) => ({ + id: item.incidentId, + orgId: input.orgId, + issueId: item.entry.issueId, + status: "open" as const, + reason: item.reason, + firstTriggeredAt: msToDate(item.entry.row.firstSeenMs), + lastTriggeredAt: msToDate(item.entry.row.lastSeenMs), + resolvedAt: null, + occurrenceCount: item.entry.row.count, + createdAt: windowEnd, + updatedAt: windowEnd, + })), + ) + incidentsOpened = opened.length + + for (const item of opened) { + if (openNotificationsEnabled(input.policy, item.reason, item.entry.row.count)) { + notifications.push( + ...buildNotificationRows(input, { + kind: "open", + issueId: item.entry.issueId, + incidentId: item.incidentId, + serviceName: item.entry.row.serviceName, + exceptionType: item.entry.row.exceptionType, + severity: input.policy.severity, + threshold: input.policy.minOccurrenceCount, + count: item.entry.row.count, + }), + ) + } + pendingTriages.push({ + issueId: item.entry.issueId, + incidentId: item.incidentId, + reason: item.reason, + severity: item.entry.priorSeverity, + row: item.entry.row, + }) } - pendingTriages.push({ - issueId: item.entry.issueId, - incidentId: item.incidentId, - reason: item.reason, - severity: item.entry.priorSeverity, - row: item.entry.row, - }) } } - } - - const staleBefore = msToDate(input.windowEndMs - input.autoResolveMinutes * 60_000) - const staleIncidents = await tx - .select() - .from(errorIncidents) - .where( - and( - eq(errorIncidents.orgId, input.orgId), - eq(errorIncidents.status, "open"), - lt(errorIncidents.lastTriggeredAt, staleBefore), - ), - ) - let incidentsResolved = 0 - if (staleIncidents.length > 0) { - const staleIds = staleIncidents.map((incident) => incident.id) - // `status = 'open'` in the predicate keeps the flip idempotent, and - // RETURNING reports exactly which rows this transaction resolved. - const flipped = await tx - .update(errorIncidents) - .set({ status: "resolved", resolvedAt: windowEnd, updatedAt: windowEnd }) + const staleBefore = msToDate(input.windowEndMs - input.autoResolveMinutes * 60_000) + const staleIncidents = yield* tx + .select() + .from(errorIncidents) .where( and( eq(errorIncidents.orgId, input.orgId), - inArray(errorIncidents.id, staleIds), eq(errorIncidents.status, "open"), + lt(errorIncidents.lastTriggeredAt, staleBefore), ), ) - .returning({ id: errorIncidents.id }) - const flippedIds = flipped.map((row) => row.id) - incidentsResolved = flippedIds.length - if (flippedIds.length > 0) { - const resolvedIncidents = staleIncidents.filter((incident) => - flippedIds.includes(incident.id), - ) - // Match on `open_incident_id` too: a state pointing at some other - // incident must not be cleared by this one resolving. - await tx - .update(errorIssueStates) - .set({ openIncidentId: null, updatedAt: windowEnd }) + let incidentsResolved = 0 + if (staleIncidents.length > 0) { + const staleIds = staleIncidents.map((incident) => incident.id) + // `status = 'open'` in the predicate keeps the flip idempotent, and + // RETURNING reports exactly which rows this transaction resolved. + const flipped = yield* tx + .update(errorIncidents) + .set({ status: "resolved", resolvedAt: windowEnd, updatedAt: windowEnd }) .where( and( - eq(errorIssueStates.orgId, input.orgId), - inArray( - errorIssueStates.issueId, - resolvedIncidents.map((incident) => incident.issueId), - ), - inArray(errorIssueStates.openIncidentId, flippedIds), + eq(errorIncidents.orgId, input.orgId), + inArray(errorIncidents.id, staleIds), + eq(errorIncidents.status, "open"), ), ) + .returning({ id: errorIncidents.id }) + const flippedIds = flipped.map((row) => row.id) + incidentsResolved = flippedIds.length - if (input.policy.enabled && input.policy.notifyOnResolve) { - const staleIssueIds = [...new Set(resolvedIncidents.map((incident) => incident.issueId))] - const staleIssues = await tx - .select() - .from(errorIssues) + if (flippedIds.length > 0) { + const resolvedIncidents = staleIncidents.filter((incident) => + flippedIds.includes(incident.id), + ) + // Match on `open_incident_id` too: a state pointing at some other + // incident must not be cleared by this one resolving. + yield* tx + .update(errorIssueStates) + .set({ openIncidentId: null, updatedAt: windowEnd }) .where( - and(eq(errorIssues.orgId, input.orgId), inArray(errorIssues.id, staleIssueIds)), - ) - const staleIssueById = new Map(staleIssues.map((issue) => [issue.id, issue])) - for (const incident of resolvedIncidents) { - const issue = staleIssueById.get(incident.issueId) - if (!issue) continue - notifications.push( - ...buildNotificationRows(input, { - kind: "resolve", - issueId: incident.issueId, - incidentId: incident.id, - serviceName: issue.serviceName, - exceptionType: issue.exceptionType, - severity: input.policy.severity, - threshold: input.policy.minOccurrenceCount, - count: incident.occurrenceCount, - }), + and( + eq(errorIssueStates.orgId, input.orgId), + inArray( + errorIssueStates.issueId, + resolvedIncidents.map((incident) => incident.issueId), + ), + inArray(errorIssueStates.openIncidentId, flippedIds), + ), ) + + if (input.policy.enabled && input.policy.notifyOnResolve) { + const staleIssueIds = [ + ...new Set(resolvedIncidents.map((incident) => incident.issueId)), + ] + const staleIssues = yield* tx + .select() + .from(errorIssues) + .where( + and( + eq(errorIssues.orgId, input.orgId), + inArray(errorIssues.id, staleIssueIds), + ), + ) + const staleIssueById = new Map(staleIssues.map((issue) => [issue.id, issue])) + for (const incident of resolvedIncidents) { + const issue = staleIssueById.get(incident.issueId) + if (!issue) continue + notifications.push( + ...buildNotificationRows(input, { + kind: "resolve", + issueId: incident.issueId, + incidentId: incident.id, + serviceName: issue.serviceName, + exceptionType: issue.exceptionType, + severity: input.policy.severity, + threshold: input.policy.minOccurrenceCount, + count: incident.occurrenceCount, + }), + ) + } } } } - } - - if (events.length > 0) await tx.insert(errorIssueEvents).values(events) - if (notifications.length > 0) { - await tx - .insert(errorNotificationDeliveries) - .values(notifications) - .onConflictDoNothing({ - target: [ - errorNotificationDeliveries.deliveryKey, - errorNotificationDeliveries.destinationId, - ], + + if (events.length > 0) yield* tx.insert(errorIssueEvents).values(events) + if (notifications.length > 0) { + yield* tx + .insert(errorNotificationDeliveries) + .values(notifications) + .onConflictDoNothing({ + target: [ + errorNotificationDeliveries.deliveryKey, + errorNotificationDeliveries.destinationId, + ], + }) + } + + const advanced = yield* tx + .update(errorTickStates) + .set({ + processedThrough: windowEnd, + bootstrapCompleted: true, + claimToken: null, + claimExpiresAt: null, + updatedAt: windowEnd, }) - } - - const advanced = await tx - .update(errorTickStates) - .set({ - processedThrough: windowEnd, - bootstrapCompleted: true, - claimToken: null, - claimExpiresAt: null, - updatedAt: windowEnd, - }) - .where( - and(eq(errorTickStates.orgId, input.orgId), eq(errorTickStates.claimToken, input.claimToken)), - ) - .returning({ orgId: errorTickStates.orgId }) - if (advanced.length === 0) throw new ErrorTickClaimLost(input.orgId, "checkpoint") - - return { - issuesTouched: observed.length, - incidentsOpened, - incidentsResolved, - pendingTriages, - } - }) + .where( + and( + eq(errorTickStates.orgId, input.orgId), + eq(errorTickStates.claimToken, input.claimToken), + ), + ) + .returning({ orgId: errorTickStates.orgId }) + if (advanced.length === 0) return yield* Effect.fail(claimLost(input.orgId, "checkpoint")) + + return { + issuesTouched: observed.length, + incidentsOpened, + incidentsResolved, + pendingTriages, + } + }), + ) diff --git a/packages/backend/src/services/errors/investigation-quota.ts b/packages/backend/src/services/errors/investigation-quota.ts index 3e7c99472..eef2413c8 100644 --- a/packages/backend/src/services/errors/investigation-quota.ts +++ b/packages/backend/src/services/errors/investigation-quota.ts @@ -17,9 +17,11 @@ */ import { investigations } from "@maple/db" +import type { MapleDbLike } from "@maple/db/client" import { and, eq, gte, sql } from "drizzle-orm" +import type { EffectDrizzleQueryError } from "drizzle-orm/effect-core" +import { Effect } from "effect" import type { IssueSeverity, OrgId } from "@maple/domain/http" -import type { DatabaseClient } from "@maple/backend/platform/DatabaseLive" /** Runs per UTC day when the org has no row in `ai_triage_settings`. */ export const DEFAULT_MAX_RUNS_PER_DAY = 250 @@ -65,26 +67,27 @@ export interface InvestigationUsage { * `maybeEnqueueTriage` has `database.execute`, and neither should have to adopt * the other's. */ -export const selectInvestigationUsage = async ( - db: DatabaseClient, +export const selectInvestigationUsage = ( + db: MapleDbLike, orgId: OrgId, nowMs: number, -): Promise => { - const rows = await db - .select({ - runs: sql`count(*)::int`, - // One agent turn per start. - passes: sql`count(*)::int`, - }) - .from(investigations) - .where( - and( - eq(investigations.orgId, orgId), - gte(investigations.startedAt, new Date(startOfUtcDay(nowMs))), +): Effect.Effect => + Effect.map( + db + .select({ + runs: sql`count(*)::int`, + // One agent turn per start. + passes: sql`count(*)::int`, + }) + .from(investigations) + .where( + and( + eq(investigations.orgId, orgId), + gte(investigations.startedAt, new Date(startOfUtcDay(nowMs))), + ), ), - ) - return { runs: rows[0]?.runs ?? 0, passes: rows[0]?.passes ?? 0 } -} + (rows) => ({ runs: rows[0]?.runs ?? 0, passes: rows[0]?.passes ?? 0 }), + ) export interface InvestigationQuotaLimits { readonly maxRunsPerDay?: number | null diff --git a/packages/backend/src/services/errors/issue-severity.test.ts b/packages/backend/src/services/errors/issue-severity.test.ts index 0cba94e4e..7d9070434 100644 --- a/packages/backend/src/services/errors/issue-severity.test.ts +++ b/packages/backend/src/services/errors/issue-severity.test.ts @@ -1,15 +1,19 @@ import { randomUUID } from "node:crypto" -import { afterEach, beforeEach, describe, expect, it } from "vitest" +import { afterEach, describe, expect, it } from "@effect/vitest" import { AiTriageResult } from "@maple/domain/http" import { ErrorIssueId, OrgId } from "@maple/domain/primitives" import { actors, errorIssues, errorIssueEvents, issueEscalations } from "@maple/db" -import { runMigrations } from "@maple/db/migrate" -import type { MaplePgClient } from "@maple/db/client" -import { createMaplePgliteClient } from "@maple/db/pglite" import { eq } from "drizzle-orm" -import { Schema } from "effect" +import { Effect, Schema } from "effect" +import { Database } from "@maple/backend/platform/DatabaseLive" import { cleanupTestDbs, createTestDb, type TestDb } from "@maple/backend/platform/test-pglite" -import { applyTriageSeverity, escalationReasonFor, severityRank, TRIAGE_AGENT_NAME } from "./issue-severity" +import { + applyTriageSeverity, + type ApplyTriageSeverityInput, + escalationReasonFor, + severityRank, + TRIAGE_AGENT_NAME, +} from "./issue-severity" const createdDbs: TestDb[] = [] @@ -21,45 +25,69 @@ const decodeTriageResult = Schema.decodeUnknownSync(AiTriageResult) const ORG = asOrgId("org_severity_test") -let db: MaplePgClient -let issueId: ErrorIssueId - -beforeEach(async () => { - const testDb = createTestDb(createdDbs) - await runMigrations(testDb.pglite) - // Same shared drizzle query-builder surface as the postgres.js client. - db = createMaplePgliteClient(testDb.pglite) as MaplePgClient - issueId = asIssueId(randomUUID()) +/** + * One seeded issue per test on a fresh embedded Postgres. The helpers close + * over the same `Database`, so the severity write and the reads that check it + * run against the same rows. + */ +const setup = Effect.gen(function* () { + const database = yield* Database + const issueId = asIssueId(randomUUID()) const now = new Date() - await db.insert(errorIssues).values({ - id: issueId, + yield* database.execute((db) => + db.insert(errorIssues).values({ + id: issueId, + orgId: ORG, + fingerprintHash: "12345678901234567890", + serviceName: "checkout-api", + exceptionType: "TimeoutError", + exceptionMessage: "upstream timed out", + topFrame: "", + firstSeenAt: now, + lastSeenAt: now, + createdAt: now, + updatedAt: now, + }), + ) + + const baseInput = (overrides: Partial = {}): ApplyTriageSeverityInput => ({ orgId: ORG, - fingerprintHash: "12345678901234567890", - serviceName: "checkout-api", - exceptionType: "TimeoutError", - exceptionMessage: "upstream timed out", - topFrame: "", - firstSeenAt: now, - lastSeenAt: now, - createdAt: now, - updatedAt: now, + issueId, + runId: "run-1", + severity: "high", + confidence: "medium", + timestamp: Date.now(), + ...overrides, }) -}) -const baseInput = (overrides: Partial[1]> = {}) => ({ - orgId: ORG, - issueId, - runId: "run-1", - severity: "high" as const, - confidence: "medium" as const, - timestamp: Date.now(), - ...overrides, + const apply = (overrides: Partial = {}) => + database.execute((db) => applyTriageSeverity(db, baseInput(overrides))) + + const setIssueSeverity = ( + severity: "critical" | "high" | "medium" | "low", + severitySource: "manual" | "detector", + ) => + database.execute((db) => + db.update(errorIssues).set({ severity, severitySource }).where(eq(errorIssues.id, issueId)), + ) + + const loadIssue = Effect.map( + database.execute((db) => db.select().from(errorIssues).where(eq(errorIssues.id, issueId))), + (rows) => rows[0], + ) + const loadEvents = database.execute((db) => + db.select().from(errorIssueEvents).where(eq(errorIssueEvents.issueId, issueId)), + ) + const loadEscalations = database.execute((db) => + db.select().from(issueEscalations).where(eq(issueEscalations.issueId, issueId)), + ) + const loadAgents = database.execute((db) => db.select().from(actors).where(eq(actors.orgId, ORG))) + + return { apply, setIssueSeverity, loadIssue, loadEvents, loadEscalations, loadAgents } }) -const loadIssue = async () => { - const rows = await db.select().from(errorIssues).where(eq(errorIssues.id, issueId)) - return rows[0] -} +const withDb = (self: Effect.Effect) => + self.pipe(Effect.provide(createTestDb(createdDbs).layer)) describe("severityRank / escalationReasonFor", () => { it("ranks severities and treats unset as lowest", () => { @@ -78,75 +106,80 @@ describe("severityRank / escalationReasonFor", () => { }) describe("applyTriageSeverity", () => { - it("applies severity, writes the timeline event, and queues an escalation", async () => { - const outcome = await applyTriageSeverity(db, baseInput()) - expect(outcome.applied).toBe(true) - expect(outcome.actorId).not.toBeNull() - - const issue = await loadIssue() - expect(issue?.severity).toBe("high") - expect(issue?.severitySource).toBe("ai") - - const events = await db.select().from(errorIssueEvents).where(eq(errorIssueEvents.issueId, issueId)) - expect(events).toHaveLength(1) - expect(events[0]?.type).toBe("severity_change") - expect(events[0]?.payloadJson).toMatchObject({ from: null, to: "high", source: "ai" }) - - const escalations = await db - .select() - .from(issueEscalations) - .where(eq(issueEscalations.issueId, issueId)) - expect(escalations).toHaveLength(1) - expect(escalations[0]?.reason).toBe("severity_set") - expect(escalations[0]?.status).toBe("queued") - - const agentRows = await db.select().from(actors).where(eq(actors.orgId, ORG)) - expect(agentRows).toHaveLength(1) - expect(agentRows[0]?.agentName).toBe(TRIAGE_AGENT_NAME) - }) - - it("stamps the triage agent actor with the input timestamp, not wall clock", async () => { - const timestamp = 1_765_432_100_000 - await applyTriageSeverity(db, baseInput({ timestamp })) - - const agentRows = await db.select().from(actors).where(eq(actors.orgId, ORG)) - expect(agentRows).toHaveLength(1) - expect(agentRows[0]?.createdAt.getTime()).toBe(timestamp) - expect(agentRows[0]?.lastActiveAt?.getTime()).toBe(timestamp) - }) - - it("is idempotent across persist retries", async () => { - await applyTriageSeverity(db, baseInput()) - await applyTriageSeverity(db, baseInput()) - - const events = await db.select().from(errorIssueEvents).where(eq(errorIssueEvents.issueId, issueId)) - expect(events).toHaveLength(1) - const escalations = await db - .select() - .from(issueEscalations) - .where(eq(issueEscalations.issueId, issueId)) - expect(escalations).toHaveLength(1) - }) - - it("never clobbers a manual override", async () => { - await db - .update(errorIssues) - .set({ severity: "low", severitySource: "manual" }) - .where(eq(errorIssues.id, issueId)) - - const outcome = await applyTriageSeverity(db, baseInput()) - expect(outcome.applied).toBe(false) - - const issue = await loadIssue() - expect(issue?.severity).toBe("low") - expect(issue?.severitySource).toBe("manual") - - const escalations = await db - .select() - .from(issueEscalations) - .where(eq(issueEscalations.issueId, issueId)) - expect(escalations).toHaveLength(0) - }) + it.effect("applies severity, writes the timeline event, and queues an escalation", () => + withDb( + Effect.gen(function* () { + const t = yield* setup + const outcome = yield* t.apply() + expect(outcome.applied).toBe(true) + expect(outcome.actorId).not.toBeNull() + + const issue = yield* t.loadIssue + expect(issue?.severity).toBe("high") + expect(issue?.severitySource).toBe("ai") + + const events = yield* t.loadEvents + expect(events).toHaveLength(1) + expect(events[0]?.type).toBe("severity_change") + expect(events[0]?.payloadJson).toMatchObject({ from: null, to: "high", source: "ai" }) + + const escalations = yield* t.loadEscalations + expect(escalations).toHaveLength(1) + expect(escalations[0]?.reason).toBe("severity_set") + expect(escalations[0]?.status).toBe("queued") + + const agentRows = yield* t.loadAgents + expect(agentRows).toHaveLength(1) + expect(agentRows[0]?.agentName).toBe(TRIAGE_AGENT_NAME) + }), + ), + ) + + it.effect("stamps the triage agent actor with the input timestamp, not wall clock", () => + withDb( + Effect.gen(function* () { + const t = yield* setup + const timestamp = 1_765_432_100_000 + yield* t.apply({ timestamp }) + + const agentRows = yield* t.loadAgents + expect(agentRows).toHaveLength(1) + expect(agentRows[0]?.createdAt.getTime()).toBe(timestamp) + expect(agentRows[0]?.lastActiveAt?.getTime()).toBe(timestamp) + }), + ), + ) + + it.effect("is idempotent across persist retries", () => + withDb( + Effect.gen(function* () { + const t = yield* setup + yield* t.apply() + yield* t.apply() + + expect(yield* t.loadEvents).toHaveLength(1) + expect(yield* t.loadEscalations).toHaveLength(1) + }), + ), + ) + + it.effect("never clobbers a manual override", () => + withDb( + Effect.gen(function* () { + const t = yield* setup + yield* t.setIssueSeverity("low", "manual") + + const outcome = yield* t.apply() + expect(outcome.applied).toBe(false) + + const issue = yield* t.loadIssue + expect(issue?.severity).toBe("low") + expect(issue?.severitySource).toBe("manual") + + expect(yield* t.loadEscalations).toHaveLength(0) + }), + ), + ) /** * The partial: a validator that promoted nothing has no cause whose severity it @@ -154,106 +187,109 @@ describe("applyTriageSeverity", () => { * had to fabricate a level here, and an inconclusive run could quietly downgrade * an issue a detector had already ranked. */ - it("leaves the issue untouched when the report carried no assessment", async () => { - await db - .update(errorIssues) - .set({ severity: "critical", severitySource: "detector" }) - .where(eq(errorIssues.id, issueId)) - - const outcome = await applyTriageSeverity(db, baseInput({ severity: undefined })) - expect(outcome.applied).toBe(false) - // The actor still comes back: the caller records that triage ran. - expect(outcome.actorId).not.toBeNull() - - const issue = await loadIssue() - expect(issue?.severity).toBe("critical") - expect(issue?.severitySource).toBe("detector") - - const escalations = await db - .select() - .from(issueEscalations) - .where(eq(issueEscalations.issueId, issueId)) - expect(escalations).toHaveLength(0) - }) - - it("does not queue an escalation for a non-upward assessment", async () => { - await db - .update(errorIssues) - .set({ severity: "critical", severitySource: "detector" }) - .where(eq(errorIssues.id, issueId)) - - const outcome = await applyTriageSeverity(db, baseInput({ severity: "medium" })) - expect(outcome.applied).toBe(true) - - const issue = await loadIssue() - expect(issue?.severity).toBe("medium") - expect(issue?.severitySource).toBe("ai") - - const escalations = await db - .select() - .from(issueEscalations) - .where(eq(issueEscalations.issueId, issueId)) - expect(escalations).toHaveLength(0) - }) - - it("flips the source detector->ai without a severity_change event when severity is unchanged", async () => { - await db - .update(errorIssues) - .set({ severity: "high", severitySource: "detector" }) - .where(eq(errorIssues.id, issueId)) - - const outcome = await applyTriageSeverity(db, baseInput({ severity: "high" })) - expect(outcome.applied).toBe(true) - - const issue = await loadIssue() - expect(issue?.severity).toBe("high") - expect(issue?.severitySource).toBe("ai") - - const events = await db.select().from(errorIssueEvents).where(eq(errorIssueEvents.issueId, issueId)) - expect(events.some((e) => e.type === "severity_change")).toBe(false) - - // Same-level confirmation: no escalation either (upward-only rule). - const escalations = await db - .select() - .from(issueEscalations) - .where(eq(issueEscalations.issueId, issueId)) - expect(escalations).toHaveLength(0) - }) - - it("snapshots the full triage result into the escalation payload", async () => { - const plainResult = { - summary: "Error rate spike caused by a bad deploy.", - suspectedCause: "Regression in payment-service v2.3.1.", - severityAssessment: "high", - affectedScope: "checkout-api, ~10% of requests", - evidence: [ - { - traceIds: ["0af7651916cd43dd8448eb211c80319c"], - logPatterns: ["timeout after ms"], - relatedServices: ["payment-service"], - note: "Consistent failure span.", - }, - ], - suggestedActions: ["Roll back payment-service."], - confidence: "medium", - } - const outcome = await applyTriageSeverity(db, baseInput({ result: decodeTriageResult(plainResult) })) - expect(outcome.applied).toBe(true) - - const escalations = await db - .select() - .from(issueEscalations) - .where(eq(issueEscalations.issueId, issueId)) - expect(escalations).toHaveLength(1) - expect(escalations[0]?.payloadJson).toMatchObject({ - confidence: "medium", - triage: plainResult, - }) - }) - - it("returns applied=false when the issue does not exist", async () => { - const outcome = await applyTriageSeverity(db, baseInput({ issueId: asIssueId(randomUUID()) })) - expect(outcome.applied).toBe(false) - expect(outcome.actorId).toBeNull() - }) + it.effect("leaves the issue untouched when the report carried no assessment", () => + withDb( + Effect.gen(function* () { + const t = yield* setup + yield* t.setIssueSeverity("critical", "detector") + + const outcome = yield* t.apply({ severity: undefined }) + expect(outcome.applied).toBe(false) + // The actor still comes back: the caller records that triage ran. + expect(outcome.actorId).not.toBeNull() + + const issue = yield* t.loadIssue + expect(issue?.severity).toBe("critical") + expect(issue?.severitySource).toBe("detector") + + expect(yield* t.loadEscalations).toHaveLength(0) + }), + ), + ) + + it.effect("does not queue an escalation for a non-upward assessment", () => + withDb( + Effect.gen(function* () { + const t = yield* setup + yield* t.setIssueSeverity("critical", "detector") + + const outcome = yield* t.apply({ severity: "medium" }) + expect(outcome.applied).toBe(true) + + const issue = yield* t.loadIssue + expect(issue?.severity).toBe("medium") + expect(issue?.severitySource).toBe("ai") + + expect(yield* t.loadEscalations).toHaveLength(0) + }), + ), + ) + + it.effect( + "flips the source detector->ai without a severity_change event when severity is unchanged", + () => + withDb( + Effect.gen(function* () { + const t = yield* setup + yield* t.setIssueSeverity("high", "detector") + + const outcome = yield* t.apply({ severity: "high" }) + expect(outcome.applied).toBe(true) + + const issue = yield* t.loadIssue + expect(issue?.severity).toBe("high") + expect(issue?.severitySource).toBe("ai") + + const events = yield* t.loadEvents + expect(events.some((e) => e.type === "severity_change")).toBe(false) + + // Same-level confirmation: no escalation either (upward-only rule). + expect(yield* t.loadEscalations).toHaveLength(0) + }), + ), + ) + + it.effect("snapshots the full triage result into the escalation payload", () => + withDb( + Effect.gen(function* () { + const t = yield* setup + const plainResult = { + summary: "Error rate spike caused by a bad deploy.", + suspectedCause: "Regression in payment-service v2.3.1.", + severityAssessment: "high", + affectedScope: "checkout-api, ~10% of requests", + evidence: [ + { + traceIds: ["0af7651916cd43dd8448eb211c80319c"], + logPatterns: ["timeout after ms"], + relatedServices: ["payment-service"], + note: "Consistent failure span.", + }, + ], + suggestedActions: ["Roll back payment-service."], + confidence: "medium", + } + const outcome = yield* t.apply({ result: decodeTriageResult(plainResult) }) + expect(outcome.applied).toBe(true) + + const escalations = yield* t.loadEscalations + expect(escalations).toHaveLength(1) + expect(escalations[0]?.payloadJson).toMatchObject({ + confidence: "medium", + triage: plainResult, + }) + }), + ), + ) + + it.effect("returns applied=false when the issue does not exist", () => + withDb( + Effect.gen(function* () { + const t = yield* setup + const outcome = yield* t.apply({ issueId: asIssueId(randomUUID()) }) + expect(outcome.applied).toBe(false) + expect(outcome.actorId).toBeNull() + }), + ), + ) }) diff --git a/packages/backend/src/services/errors/issue-severity.ts b/packages/backend/src/services/errors/issue-severity.ts index 7f77db527..3dc32ef33 100644 --- a/packages/backend/src/services/errors/issue-severity.ts +++ b/packages/backend/src/services/errors/issue-severity.ts @@ -14,9 +14,10 @@ import { OrgId, } from "@maple/domain/primitives" import { actors, errorIssues, errorIssueEvents, issueEscalations } from "@maple/db" -import type { MapleDatabaseTransaction, MaplePgClient } from "@maple/db/client" +import type { MapleDbLike } from "@maple/db/client" import { and, eq, ne, isNull, or } from "drizzle-orm" -import { Schema } from "effect" +import type { EffectDrizzleQueryError } from "drizzle-orm/effect-core" +import { Effect, Schema } from "effect" import { TRIAGE_AGENT_NAME } from "@maple/backend/services/auth/system-actors" export { TRIAGE_AGENT_NAME } from "@maple/backend/services/auth/system-actors" @@ -26,7 +27,16 @@ export { TRIAGE_AGENT_NAME } from "@maple/backend/services/auth/system-actors" * the severity write atomically alongside their own writes (e.g. the * `submit_diagnosis` timeline event) in a single transaction. */ -export type TriageSeverityDb = MaplePgClient | MapleDatabaseTransaction +export type TriageSeverityDb = MapleDbLike + +/** + * The triage-agent actor row was neither found nor insertable. Only reachable + * if the row is deleted between the guarded insert and the re-read. + */ +export class TriageActorMissingError extends Schema.TaggedError()( + "@maple/api/services/TriageActorMissingError", + { message: Schema.String, orgId: OrgId }, +) {} const decodeActorId = Schema.decodeUnknownSync(ActorId) const decodeEventId = Schema.decodeUnknownSync(ErrorIssueEventId) @@ -75,45 +85,53 @@ export const escalationReasonFor = ( return severityRank(to) > severityRank(from) ? "severity_escalated" : null } -const ensureTriageAgentActor = async ( +const ensureTriageAgentActor = ( db: TriageSeverityDb, orgId: OrgId, timestamp: number, -): Promise => { - const select = () => - db - .select() - .from(actors) - .where( - and( - eq(actors.orgId, orgId), - eq(actors.type, "agent"), - eq(actors.agentName, TRIAGE_AGENT_NAME), - ), +): Effect.Effect => + Effect.gen(function* () { + const select = () => + db + .select() + .from(actors) + .where( + and( + eq(actors.orgId, orgId), + eq(actors.type, "agent"), + eq(actors.agentName, TRIAGE_AGENT_NAME), + ), + ) + .limit(1) + const existing = yield* select() + if (existing[0]) return existing[0].id + yield* db + .insert(actors) + .values({ + id: decodeActorId(randomUUID()), + orgId, + type: "agent", + userId: null, + agentName: TRIAGE_AGENT_NAME, + model: null, + capabilitiesJson: ["auto-triage"], + createdBy: null, + createdAt: new Date(timestamp), + lastActiveAt: new Date(timestamp), + }) + .onConflictDoNothing() + const after = yield* select() + const row = after[0] + if (!row) { + return yield* Effect.fail( + new TriageActorMissingError({ + message: "Failed to ensure maple-triage-agent actor row", + orgId, + }), ) - .limit(1) - const existing = await select() - if (existing[0]) return existing[0].id - await db - .insert(actors) - .values({ - id: decodeActorId(randomUUID()), - orgId, - type: "agent", - userId: null, - agentName: TRIAGE_AGENT_NAME, - model: null, - capabilitiesJson: ["auto-triage"], - createdBy: null, - createdAt: new Date(timestamp), - lastActiveAt: new Date(timestamp), - }) - .onConflictDoNothing() - const after = await select() - const row = after[0] - if (!row) throw new Error("Failed to ensure maple-triage-agent actor row") - return row.id -} + } + return row.id + }) export interface ApplyTriageSeverityInput { readonly orgId: OrgId @@ -142,106 +160,107 @@ export interface ApplyTriageSeverityOutcome { * (manual override always wins), `severity_change` timeline event, and an * escalation-outbox row when the severity newly sets or strictly escalates. */ -export const applyTriageSeverity = async ( +export const applyTriageSeverity = ( db: TriageSeverityDb, input: ApplyTriageSeverityInput, -): Promise => { - const issueRows = await db - .select() - .from(errorIssues) - .where(and(eq(errorIssues.orgId, input.orgId), eq(errorIssues.id, input.issueId))) - .limit(1) - const issue = issueRows[0] - if (!issue) return { applied: false, actorId: null } - - const actorId = await ensureTriageAgentActor(db, input.orgId, input.timestamp) - - // No assessment, no re-rank: a report that did not judge the severity must not - // overwrite one that was. The actor is still returned so the caller can record - // that triage ran on the issue's timeline. - const severity = input.severity - if (severity === undefined) return { applied: false, actorId } - - const from = issue.severity ?? null - - if (issue.severitySource === "manual") { - return { applied: false, actorId } - } - - // Guard repeated in SQL so a concurrent manual write between the read above - // and this update still wins. - const updated = await db - .update(errorIssues) - .set({ severity, severitySource: "ai", updatedAt: new Date(input.timestamp) }) - .where( - and( - eq(errorIssues.orgId, input.orgId), - eq(errorIssues.id, input.issueId), - or(isNull(errorIssues.severitySource), ne(errorIssues.severitySource, "manual")), - ), - ) - // The returned row is the guard outcome: empty means a concurrent - // manual severity write won. - .returning({ id: errorIssues.id }) - if (updated.length === 0) { - return { applied: false, actorId } - } - - if (from !== severity) { - await db - .insert(errorIssueEvents) - .values({ - id: decodeEventId(deterministicUuid(`ai-triage-severity:${input.runId}`)), - orgId: input.orgId, - issueId: input.issueId, - actorId, - type: "severity_change", - fromState: null, - toState: null, - payloadJson: { - from, - to: severity, +): Effect.Effect => + Effect.gen(function* () { + const issueRows = yield* db + .select() + .from(errorIssues) + .where(and(eq(errorIssues.orgId, input.orgId), eq(errorIssues.id, input.issueId))) + .limit(1) + const issue = issueRows[0] + if (!issue) return { applied: false, actorId: null } + + const actorId = yield* ensureTriageAgentActor(db, input.orgId, input.timestamp) + + // No assessment, no re-rank: a report that did not judge the severity must not + // overwrite one that was. The actor is still returned so the caller can record + // that triage ran on the issue's timeline. + const severity = input.severity + if (severity === undefined) return { applied: false, actorId } + + const from = issue.severity ?? null + + if (issue.severitySource === "manual") { + return { applied: false, actorId } + } + + // Guard repeated in SQL so a concurrent manual write between the read above + // and this update still wins. + const updated = yield* db + .update(errorIssues) + .set({ severity, severitySource: "ai", updatedAt: new Date(input.timestamp) }) + .where( + and( + eq(errorIssues.orgId, input.orgId), + eq(errorIssues.id, input.issueId), + or(isNull(errorIssues.severitySource), ne(errorIssues.severitySource, "manual")), + ), + ) + // The returned row is the guard outcome: empty means a concurrent + // manual severity write won. + .returning({ id: errorIssues.id }) + if (updated.length === 0) { + return { applied: false, actorId } + } + + if (from !== severity) { + yield* db + .insert(errorIssueEvents) + .values({ + id: decodeEventId(deterministicUuid(`ai-triage-severity:${input.runId}`)), + orgId: input.orgId, + issueId: input.issueId, + actorId, + type: "severity_change", + fromState: null, + toState: null, + payloadJson: { + from, + to: severity, + source: "ai", + runId: input.runId, + confidence: input.confidence, + }, + createdAt: new Date(input.timestamp), + }) + .onConflictDoNothing() + } + + const reason = escalationReasonFor(from, severity) + if (reason !== null) { + yield* db + .insert(issueEscalations) + .values({ + id: decodeEscalationId(deterministicUuid(`ai-triage-escalation:${input.runId}`)), + orgId: input.orgId, + issueId: input.issueId, + severity, source: "ai", + reason, runId: input.runId, - confidence: input.confidence, - }, - createdAt: new Date(input.timestamp), - }) - .onConflictDoNothing() - } - - const reason = escalationReasonFor(from, severity) - if (reason !== null) { - await db - .insert(issueEscalations) - .values({ - id: decodeEscalationId(deterministicUuid(`ai-triage-escalation:${input.runId}`)), - orgId: input.orgId, - issueId: input.issueId, - severity, - source: "ai", - reason, - runId: input.runId, - investigationId: input.investigationId ?? null, - payloadJson: { - confidence: input.confidence, - ...(input.result ? { triage: input.result } : undefined), - }, - deliveryResultsJson: [], - status: "queued", - attempts: 0, - dedupeKey: escalationDedupeKey(input.orgId, input.issueId, severity), - error: null, - createdAt: new Date(input.timestamp), - processedAt: null, - }) - .onConflictDoNothing() - } + investigationId: input.investigationId ?? null, + payloadJson: { + confidence: input.confidence, + ...(input.result ? { triage: input.result } : undefined), + }, + deliveryResultsJson: [], + status: "queued", + attempts: 0, + dedupeKey: escalationDedupeKey(input.orgId, input.issueId, severity), + error: null, + createdAt: new Date(input.timestamp), + processedAt: null, + }) + .onConflictDoNothing() + } - await db - .update(actors) - .set({ lastActiveAt: new Date(input.timestamp) }) - .where(eq(actors.id, actorId)) + yield* db + .update(actors) + .set({ lastActiveAt: new Date(input.timestamp) }) + .where(eq(actors.id, actorId)) - return { applied: true, actorId } -} + return { applied: true, actorId } + }) diff --git a/packages/backend/src/services/integrations/PlanetScaleConnectionService.ts b/packages/backend/src/services/integrations/PlanetScaleConnectionService.ts index 6db372447..0c9992328 100644 --- a/packages/backend/src/services/integrations/PlanetScaleConnectionService.ts +++ b/packages/backend/src/services/integrations/PlanetScaleConnectionService.ts @@ -548,84 +548,107 @@ export class PlanetScaleConnectionService extends Context.Service< const retiredTargets = yield* database .execute((db) => - db.transaction(async (tx) => { - const claimed = await tx - .update(scrapeTargets) - .set({ managedBy }) - .where( - and(eq(scrapeTargets.orgId, orgId), eq(scrapeTargets.id, scrapeTargetId)), - ) - .returning({ id: scrapeTargets.id }) - if (claimed.length !== 1) { - throw new Error( - "Replacement PlanetScale scrape target disappeared before binding", - ) - } - - if (existing !== null) { - const rebound = await tx - .update(planetscaleConnections) - .set({ + db.transaction((tx) => + Effect.gen(function* () { + const claimed = yield* tx + .update(scrapeTargets) + .set({ managedBy }) + .where( + and( + eq(scrapeTargets.orgId, orgId), + eq(scrapeTargets.id, scrapeTargetId), + ), + ) + .returning({ id: scrapeTargets.id }) + if (claimed.length !== 1) { + return yield* Effect.fail( + new IntegrationsPersistenceError({ + message: + "Replacement PlanetScale scrape target disappeared before binding", + }), + ) + } + + if (existing !== null) { + const rebound = yield* tx + .update(planetscaleConnections) + .set({ + psOrganization: organization, + connectedByUserId, + scrapeTargetId, + detectedPermissionsJson: { ...permissions }, + updatedAt: new Date(now), + }) + .where(eq(planetscaleConnections.id, existing.id)) + .returning({ id: planetscaleConnections.id }) + if (rebound.length !== 1) { + return yield* Effect.fail( + new IntegrationsPersistenceError({ + message: + "PlanetScale connection disappeared before rebinding", + }), + ) + } + + if ( + existing.scrapeTargetId === null || + existing.scrapeTargetId === scrapeTargetId + ) { + return [] + } + + // Ownership is part of the predicate: a target transferred by a + // concurrent operation is never removed by this connection. + return yield* tx + .delete(scrapeTargets) + .where( + and( + eq(scrapeTargets.orgId, orgId), + eq(scrapeTargets.id, existing.scrapeTargetId), + eq(scrapeTargets.managedBy, managedBy), + ), + ) + .returning({ id: scrapeTargets.id }) + } + + if (encryptedWebhookSecret === null) { + return yield* Effect.fail( + new IntegrationsPersistenceError({ + message: "Missing webhook secret for new PlanetScale connection", + }), + ) + } + const inserted = yield* tx + .insert(planetscaleConnections) + .values({ + id: connectionId, + orgId, psOrganization: organization, connectedByUserId, scrapeTargetId, + webhookSecretCiphertext: encryptedWebhookSecret.ciphertext, + webhookSecretIv: encryptedWebhookSecret.iv, + webhookSecretTag: encryptedWebhookSecret.tag, detectedPermissionsJson: { ...permissions }, + createdAt: new Date(now), updatedAt: new Date(now), }) - .where(eq(planetscaleConnections.id, existing.id)) .returning({ id: planetscaleConnections.id }) - if (rebound.length !== 1) { - throw new Error("PlanetScale connection disappeared before rebinding") - } - - if ( - existing.scrapeTargetId === null || - existing.scrapeTargetId === scrapeTargetId - ) { - return [] - } - - // Ownership is part of the predicate: a target transferred by a - // concurrent operation is never removed by this connection. - return tx - .delete(scrapeTargets) - .where( - and( - eq(scrapeTargets.orgId, orgId), - eq(scrapeTargets.id, existing.scrapeTargetId), - eq(scrapeTargets.managedBy, managedBy), - ), + if (inserted.length !== 1) { + return yield* Effect.fail( + new IntegrationsPersistenceError({ + message: "Failed to persist PlanetScale connection", + }), ) - .returning({ id: scrapeTargets.id }) - } - - if (encryptedWebhookSecret === null) { - throw new Error("Missing webhook secret for new PlanetScale connection") - } - const inserted = await tx - .insert(planetscaleConnections) - .values({ - id: connectionId, - orgId, - psOrganization: organization, - connectedByUserId, - scrapeTargetId, - webhookSecretCiphertext: encryptedWebhookSecret.ciphertext, - webhookSecretIv: encryptedWebhookSecret.iv, - webhookSecretTag: encryptedWebhookSecret.tag, - detectedPermissionsJson: { ...permissions }, - createdAt: new Date(now), - updatedAt: new Date(now), - }) - .returning({ id: planetscaleConnections.id }) - if (inserted.length !== 1) { - throw new Error("Failed to persist PlanetScale connection") - } - return [] - }), + } + return [] + }), + ), ) .pipe( - Effect.mapError(toPersistenceError), + Effect.catchTag("@maple/api/lib/DatabaseError", (error) => + Effect.fail(toPersistenceError(error)), + ), Effect.tapError(() => createdTarget ? scrapeTargetsService.deleteManaged(orgId, scrapeTargetId).pipe( diff --git a/packages/backend/src/services/integrations/ScrapeTargetsService.ts b/packages/backend/src/services/integrations/ScrapeTargetsService.ts index 36659b7b1..cea07dff7 100644 --- a/packages/backend/src/services/integrations/ScrapeTargetsService.ts +++ b/packages/backend/src/services/integrations/ScrapeTargetsService.ts @@ -1097,68 +1097,70 @@ export class ScrapeTargetsService extends Context.Service { - for (const [targetId, outcome] of outcomeByTarget) { - const reportedAt = reportedAtByTarget.get(targetId) ?? outcome.updatedAt - // Apply only if nothing newer has touched the row. Results reach - // this method from two independent producers — the scraper loop, - // and the probe `create()` forks in the background — so a batch - // can land after a newer one has already been recorded. Without - // the guard the late writer wins: the target reports a stale - // `lastScrapeAt`, or resurrects an error a newer scrape cleared. - // `updatedAt` (not `lastScrapeAt`) is the comparison because a - // failing batch leaves `lastScrapeAt` untouched and so cannot - // order itself. Equal timestamps still apply, so re-reporting a - // batch stays a no-op rather than a drop, and a config edit at - // most costs the one in-flight scrape reported before it. - await db - .update(scrapeTargets) - .set(outcome) - .where( - and( - eq(scrapeTargets.id, targetId), - lte(scrapeTargets.updatedAt, reportedAt), - ), - ) - } - - if (!recordChecks) return - - // Durable check history: one row per scheduled scrape attempt. - // Resolve orgIds on the same connection; results for deleted - // targets are skipped (the FK would reject them anyway). - const targetRows = await db - .select({ id: scrapeTargets.id, orgId: scrapeTargets.orgId }) - .from(scrapeTargets) - .where(inArray(scrapeTargets.id, [...outcomeByTarget.keys()])) - const orgIdByTarget = new Map(targetRows.map((row) => [row.id, row.orgId])) - - const checkRows = results.flatMap((result) => { - const orgId = orgIdByTarget.get(result.targetId) - if (orgId === undefined) return [] - return [ - { - targetId: result.targetId, - orgId, - subTargetKey: result.subTargetKey ?? "", - checkedAt: new Date(result.scrapedAt), - error: result.error, - durationMs: result.durationMs ?? null, - samplesScraped: result.samplesScraped ?? null, - samplesPostRelabel: result.samplesPostMetricRelabeling ?? null, - }, - ] - }) + .execute((db) => + Effect.gen(function* () { + for (const [targetId, outcome] of outcomeByTarget) { + const reportedAt = reportedAtByTarget.get(targetId) ?? outcome.updatedAt + // Apply only if nothing newer has touched the row. Results reach + // this method from two independent producers — the scraper loop, + // and the probe `create()` forks in the background — so a batch + // can land after a newer one has already been recorded. Without + // the guard the late writer wins: the target reports a stale + // `lastScrapeAt`, or resurrects an error a newer scrape cleared. + // `updatedAt` (not `lastScrapeAt`) is the comparison because a + // failing batch leaves `lastScrapeAt` untouched and so cannot + // order itself. Equal timestamps still apply, so re-reporting a + // batch stays a no-op rather than a drop, and a config edit at + // most costs the one in-flight scrape reported before it. + yield* db + .update(scrapeTargets) + .set(outcome) + .where( + and( + eq(scrapeTargets.id, targetId), + lte(scrapeTargets.updatedAt, reportedAt), + ), + ) + } + + if (!recordChecks) return + + // Durable check history: one row per scheduled scrape attempt. + // Results for deleted targets are skipped (the FK would reject + // them anyway). + const targetRows = yield* db + .select({ id: scrapeTargets.id, orgId: scrapeTargets.orgId }) + .from(scrapeTargets) + .where(inArray(scrapeTargets.id, [...outcomeByTarget.keys()])) + const orgIdByTarget = new Map(targetRows.map((row) => [row.id, row.orgId])) + + const checkRows = results.flatMap((result) => { + const orgId = orgIdByTarget.get(result.targetId) + if (orgId === undefined) return [] + return [ + { + targetId: result.targetId, + orgId, + subTargetKey: result.subTargetKey ?? "", + checkedAt: new Date(result.scrapedAt), + error: result.error, + durationMs: result.durationMs ?? null, + samplesScraped: result.samplesScraped ?? null, + samplesPostRelabel: result.samplesPostMetricRelabeling ?? null, + }, + ] + }) - if (checkRows.length > 0) { - await db.insert(scrapeTargetChecks).values(checkRows) - } - }) + if (checkRows.length > 0) { + yield* db.insert(scrapeTargetChecks).values(checkRows) + } + }), + ) .pipe(Effect.mapError(toPersistenceError)) }) diff --git a/packages/backend/src/services/integrations/SlackIntegrationService.ts b/packages/backend/src/services/integrations/SlackIntegrationService.ts index 276ddece6..5fc742334 100644 --- a/packages/backend/src/services/integrations/SlackIntegrationService.ts +++ b/packages/backend/src/services/integrations/SlackIntegrationService.ts @@ -162,11 +162,10 @@ export const missingBotScopes = (grantedScope: string | null): ReadonlyArray()( "@maple/api/integrations/SlackCrossOrgConflict", @@ -737,80 +736,83 @@ const make: Effect.Effect< // same-org install of a different team replaces the old one), then upsert // the new/refreshed row. The `setWhere` guard makes the cross-org rejection // race-safe: a concurrent install of the same team by a different org can't - // clobber the existing binding — the update is skipped and we abort the - // transaction (throwing is the only way to make drizzle roll back), and the - // sentinel resurfaces as the `cause` of the wrapping DatabaseError. The - // partial unique index on (org_id) is the backstop that ultimately enforces - // the single-active-row invariant. + // clobber the existing binding — the update is skipped and we fail the + // transaction so it rolls back, and the sentinel reaches the mapper below as + // itself. The partial unique index on (org_id) is the backstop that + // ultimately enforces the single-active-row invariant. const writeResult = yield* database - .execute(async (db) => - db.transaction(async (tx) => { - const revokedOthers = await tx - .update(slackWorkspaces) - .set({ - revokedAt: new Date(now), - revokedReason: "superseded", - updatedAt: new Date(now), - }) - .where( - and( - eq(slackWorkspaces.orgId, orgId), - isNull(slackWorkspaces.revokedAt), - ne(slackWorkspaces.teamId, teamId), - ), - ) - .returning({ apiKeyId: slackWorkspaces.apiKeyId }) - - const upserted = await tx - .insert(slackWorkspaces) - .values(values) - .onConflictDoUpdate({ - target: slackWorkspaces.teamId, - // Only allow overwriting a same-team row that belongs to this - // org or has already been revoked — never an active binding - // owned by another org. - setWhere: or( - eq(slackWorkspaces.orgId, orgId), - isNotNull(slackWorkspaces.revokedAt), - ), - set: { - orgId: values.orgId, - teamName: values.teamName, - botUserId: values.botUserId, - scope: values.scope, - botTokenCiphertext: values.botTokenCiphertext, - botTokenIv: values.botTokenIv, - botTokenTag: values.botTokenTag, - apiKeyId: values.apiKeyId, - apiKeySecretCiphertext: values.apiKeySecretCiphertext, - apiKeySecretIv: values.apiKeySecretIv, - apiKeySecretTag: values.apiKeySecretTag, - installedByUserId: values.installedByUserId, - createdAt: values.createdAt, - updatedAt: values.updatedAt, - revokedAt: null, - revokedReason: null, - }, - }) - .returning({ id: slackWorkspaces.id }) - - // Zero rows means the same-team conflict hit an active row owned by a - // different org (the setWhere blocked it) — abort so revoke-others - // rolls back too. - if (upserted.length === 0) { - throw new SlackCrossOrgConflict({ - teamId, - orgId, - message: `Slack team ${teamId} is already connected to org ${orgId}`, - }) - } + .execute((db) => + db.transaction((tx) => + Effect.gen(function* () { + const revokedOthers = yield* tx + .update(slackWorkspaces) + .set({ + revokedAt: new Date(now), + revokedReason: "superseded", + updatedAt: new Date(now), + }) + .where( + and( + eq(slackWorkspaces.orgId, orgId), + isNull(slackWorkspaces.revokedAt), + ne(slackWorkspaces.teamId, teamId), + ), + ) + .returning({ apiKeyId: slackWorkspaces.apiKeyId }) + + const upserted = yield* tx + .insert(slackWorkspaces) + .values(values) + .onConflictDoUpdate({ + target: slackWorkspaces.teamId, + // Only allow overwriting a same-team row that belongs to this + // org or has already been revoked — never an active binding + // owned by another org. + setWhere: or( + eq(slackWorkspaces.orgId, orgId), + isNotNull(slackWorkspaces.revokedAt), + ), + set: { + orgId: values.orgId, + teamName: values.teamName, + botUserId: values.botUserId, + scope: values.scope, + botTokenCiphertext: values.botTokenCiphertext, + botTokenIv: values.botTokenIv, + botTokenTag: values.botTokenTag, + apiKeyId: values.apiKeyId, + apiKeySecretCiphertext: values.apiKeySecretCiphertext, + apiKeySecretIv: values.apiKeySecretIv, + apiKeySecretTag: values.apiKeySecretTag, + installedByUserId: values.installedByUserId, + createdAt: values.createdAt, + updatedAt: values.updatedAt, + revokedAt: null, + revokedReason: null, + }, + }) + .returning({ id: slackWorkspaces.id }) + + // Zero rows means the same-team conflict hit an active row owned by a + // different org (the setWhere blocked it) — abort so revoke-others + // rolls back too. + if (upserted.length === 0) { + return yield* Effect.fail( + new SlackCrossOrgConflict({ + teamId, + orgId, + message: `Slack team ${teamId} is already connected to org ${orgId}`, + }), + ) + } - return { revokedOtherKeyIds: revokedOthers.map((r) => r.apiKeyId) } - }), + return { revokedOtherKeyIds: revokedOthers.map((r) => r.apiKeyId) } + }), + ), ) .pipe( Effect.mapError((error) => - error.cause instanceof SlackCrossOrgConflict + error instanceof SlackCrossOrgConflict ? new IntegrationsForbiddenError({ message: CROSS_ORG_CONFLICT_MESSAGE }) : toPersistenceError(error), ), diff --git a/packages/backend/src/services/integrations/planetscale-event-retention.ts b/packages/backend/src/services/integrations/planetscale-event-retention.ts index 32ab474fa..427c15d5f 100644 --- a/packages/backend/src/services/integrations/planetscale-event-retention.ts +++ b/packages/backend/src/services/integrations/planetscale-event-retention.ts @@ -25,65 +25,64 @@ const EVENT_RETENTION_MS = 90 * 24 * 60 * 60 * 1000 const EVENT_MAX_ROWS_PER_ORG = 20_000 /** - * Apply retention. Every statement runs inside ONE `execute`: under - * `DatabasePgLive` each call dials and tears down its own postgres.js client, so - * the handshake count is what costs, not the statement count. + * Apply retention. Every statement runs inside ONE `execute`: one span, one + * logical call on the invocation's connection. */ export const runPlanetScaleEventRetention = Effect.gen(function* () { const now = yield* Clock.currentTimeMillis const cutoff = msToDate(now - EVENT_RETENTION_MS) const database = yield* Database - const { orgs, deletedByAge, deletedReceipts } = yield* database.execute(async (db) => { - // A bounded indexed sweep retains replay protection for 90 days after processing. - const receipts = await db - .delete(planetscaleIssueReceipts) - .where(sql` + const { orgs, deletedByAge, deletedReceipts } = yield* database.execute((db) => + Effect.gen(function* () { + // A bounded indexed sweep retains replay protection for 90 days after processing. + const receipts = yield* db + .delete(planetscaleIssueReceipts) + .where(sql` (${planetscaleIssueReceipts.orgId}, ${planetscaleIssueReceipts.eventId}) IN ( SELECT org_id, event_id FROM planetscale_issue_receipts WHERE processed_at < ${msToSqlTimestamp(now - EVENT_RETENTION_MS)}::timestamptz ORDER BY processed_at LIMIT 5000 )`) - .returning({ eventId: planetscaleIssueReceipts.eventId }) - const aged = await db - .delete(planetscaleEvents) - .where(lt(planetscaleEvents.occurredAt, cutoff)) - .returning({ id: planetscaleEvents.id }) + .returning({ eventId: planetscaleIssueReceipts.eventId }) + const aged = yield* db + .delete(planetscaleEvents) + .where(lt(planetscaleEvents.occurredAt, cutoff)) + .returning({ id: planetscaleEvents.id }) - // Only orgs that could still be over the cap after the age delete are - // probed — the OFFSET probe walks up to EVENT_MAX_ROWS_PER_ORG index - // entries, so running it for every org would cost far more than it saves. - const overCap = await db - .select({ orgId: planetscaleEvents.orgId, total: sql`count(*)::int` }) - .from(planetscaleEvents) - .groupBy(planetscaleEvents.orgId) - .having(sql`count(*) > ${EVENT_MAX_ROWS_PER_ORG}`) + // Only orgs that could still be over the cap after the age delete are + // probed — the OFFSET probe walks up to EVENT_MAX_ROWS_PER_ORG index + // entries, so running it for every org would cost far more than it saves. + const overCap = yield* db + .select({ orgId: planetscaleEvents.orgId, total: sql`count(*)::int` }) + .from(planetscaleEvents) + .groupBy(planetscaleEvents.orgId) + .having(sql`count(*) > ${EVENT_MAX_ROWS_PER_ORG}`) - for (const org of overCap) { - // Drop everything older than the Nth-newest row. The probe rides the - // (org_id, occurred_at) index. - const boundary = ( - await db + for (const org of overCap) { + // Drop everything older than the Nth-newest row. The probe rides the + // (org_id, occurred_at) index. + const boundary = (yield* db .select({ occurredAt: planetscaleEvents.occurredAt }) .from(planetscaleEvents) .where(eq(planetscaleEvents.orgId, org.orgId)) .orderBy(desc(planetscaleEvents.occurredAt)) .limit(1) - .offset(EVENT_MAX_ROWS_PER_ORG - 1) - )[0] - if (boundary === undefined) continue - await db - .delete(planetscaleEvents) - .where( - and( - eq(planetscaleEvents.orgId, org.orgId), - lt(planetscaleEvents.occurredAt, boundary.occurredAt), - ), - ) - } + .offset(EVENT_MAX_ROWS_PER_ORG - 1))[0] + if (boundary === undefined) continue + yield* db + .delete(planetscaleEvents) + .where( + and( + eq(planetscaleEvents.orgId, org.orgId), + lt(planetscaleEvents.occurredAt, boundary.occurredAt), + ), + ) + } - return { orgs: overCap.length, deletedByAge: aged.length, deletedReceipts: receipts.length } - }) + return { orgs: overCap.length, deletedByAge: aged.length, deletedReceipts: receipts.length } + }), + ) yield* Effect.annotateCurrentSpan({ "planetscale.event_retention.deleted_by_age": deletedByAge, diff --git a/packages/backend/src/services/integrations/planetscale/webhook-events.ts b/packages/backend/src/services/integrations/planetscale/webhook-events.ts index 2d41b153c..4018f87d1 100644 --- a/packages/backend/src/services/integrations/planetscale/webhook-events.ts +++ b/packages/backend/src/services/integrations/planetscale/webhook-events.ts @@ -23,7 +23,7 @@ import { import { and, eq, sql } from "drizzle-orm" import { Clock, Effect, Result, Schema } from "effect" import { msToDate, dateToMs } from "@maple/backend/platform/time" -import { Database, type DatabaseError } from "@maple/backend/platform/DatabaseLive" +import { Database, DatabaseError } from "@maple/backend/platform/DatabaseLive" /** * PlanetScale webhook event handling: signature verification, payload decode, @@ -215,9 +215,9 @@ const planetScaleRegistry = ( }) /** - * The unique-index conflict fired but the winning row is not visible. Thrown to - * abort the transaction; `Database.execute` surfaces it as a `DatabaseError`, - * so the queue retries the delivery instead of acking a lost occurrence. + * The unique-index conflict fired but the winning row is not visible. Fails the + * transaction; `upsertPlanetScaleIssue` folds it into a `DatabaseError` so the + * queue retries the delivery instead of acking a lost occurrence. */ export class PlanetScaleIssueConflictUnresolved extends Schema.TaggedError()( "@maple/api/planetscale/PlanetScaleIssueConflictUnresolved", @@ -530,43 +530,45 @@ export const insertPlanetScaleEvent: ( "planetscaleWebhook.insertEvent", )(function* (input: InsertPlanetScaleEventInput) { const database = yield* Database - return yield* database.execute(async (db) => { - const known = await db - .select({ databaseId: planetscaleDatabases.databaseId }) - .from(planetscaleDatabases) - .where( - and( - eq(planetscaleDatabases.orgId, input.orgId), - eq(planetscaleDatabases.name, input.databaseName), - ), - ) - .limit(1) - - const rows = await db - .insert(planetscaleEvents) - .values({ - id: randomUUID(), - orgId: input.orgId, - databaseId: known[0]?.databaseId ?? "", - databaseName: input.databaseName, - branchName: input.branchName, - category: input.category, - eventType: input.eventType, - state: input.state, - externalId: input.externalId, - title: input.title, - source: input.source, - actorLogin: input.actorLogin ?? null, - url: input.url ?? null, - payloadJson: input.payload ?? null, - occurredAt: truncateToSecond(input.occurredAtMs), - createdAt: msToDate(input.createdAtMs), - }) - .onConflictDoNothing() - .returning({ id: planetscaleEvents.id }) - - return { inserted: rows.length > 0 } - }) + return yield* database.execute((db) => + Effect.gen(function* () { + const known = yield* db + .select({ databaseId: planetscaleDatabases.databaseId }) + .from(planetscaleDatabases) + .where( + and( + eq(planetscaleDatabases.orgId, input.orgId), + eq(planetscaleDatabases.name, input.databaseName), + ), + ) + .limit(1) + + const rows = yield* db + .insert(planetscaleEvents) + .values({ + id: randomUUID(), + orgId: input.orgId, + databaseId: known[0]?.databaseId ?? "", + databaseName: input.databaseName, + branchName: input.branchName, + category: input.category, + eventType: input.eventType, + state: input.state, + externalId: input.externalId, + title: input.title, + source: input.source, + actorLogin: input.actorLogin ?? null, + url: input.url ?? null, + payloadJson: input.payload ?? null, + occurredAt: truncateToSecond(input.occurredAtMs), + createdAt: msToDate(input.createdAtMs), + }) + .onConflictDoNothing() + .returning({ id: planetscaleEvents.id }) + + return { inserted: rows.length > 0 } + }), + ) }) // Issue upsert (kind="integration") @@ -624,27 +626,156 @@ export const upsertPlanetScaleIssue: ( resource: input.payload.resource ?? null, } - return yield* database.execute((db) => - db.transaction(async (tx) => { - // Distinct source events can share one issue fingerprint and queue batches - // process concurrently. Serialize that aggregate before claiming a receipt - // so every committed receipt corresponds to exactly one applied occurrence. - await tx.execute( - sql`select pg_advisory_xact_lock(hashtext(${input.orgId}), hashtext(${fingerprintHash}))`, - ) - const receipt = await tx - .insert(planetscaleIssueReceipts) - .values({ - orgId: input.orgId, - eventId: input.eventId, - processedAt: msToDate(actorTimestamp), - }) - .onConflictDoNothing() - .returning({ eventId: planetscaleIssueReceipts.eventId }) - if (receipt.length === 0) { - const existing = ( - await tx - .select({ id: errorIssues.id }) + return yield* database + .execute((db) => + db.transaction((tx) => + Effect.gen(function* () { + // Distinct source events can share one issue fingerprint and queue batches + // process concurrently. Serialize that aggregate before claiming a receipt + // so every committed receipt corresponds to exactly one applied occurrence. + yield* tx.execute( + sql`select pg_advisory_xact_lock(hashtext(${input.orgId}), hashtext(${fingerprintHash}))`, + ) + const receipt = yield* tx + .insert(planetscaleIssueReceipts) + .values({ + orgId: input.orgId, + eventId: input.eventId, + processedAt: msToDate(actorTimestamp), + }) + .onConflictDoNothing() + .returning({ eventId: planetscaleIssueReceipts.eventId }) + if (receipt.length === 0) { + const existing = (yield* tx + .select({ id: errorIssues.id }) + .from(errorIssues) + .where( + and( + eq(errorIssues.orgId, input.orgId), + eq(errorIssues.fingerprintHash, fingerprintHash), + ), + ) + .limit(1))[0] + // A receipt survives hard deletion of its issue; redelivery stays consumed. + return { issueId: existing?.id ?? null, action: "skipped" as const } + } + + const ensureActor = Effect.gen(function* () { + const selectActor = () => + tx + .select() + .from(actors) + .where( + and( + eq(actors.orgId, input.orgId), + eq(actors.type, "agent"), + eq(actors.agentName, SYSTEM_INTEGRATIONS_AGENT_NAME), + ), + ) + .limit(1) + const existing = yield* selectActor() + if (existing[0]) return existing[0].id + yield* tx + .insert(actors) + .values({ + id: decodeActorId(randomUUID()), + orgId: input.orgId, + type: "agent", + userId: null, + agentName: SYSTEM_INTEGRATIONS_AGENT_NAME, + model: null, + capabilitiesJson: ["system", "integration-issues"], + createdBy: null, + createdAt: msToDate(actorTimestamp), + lastActiveAt: msToDate(actorTimestamp), + }) + .onConflictDoNothing() + const row = (yield* selectActor())[0] + // The queue consumer retries on `DatabaseError`, so this unreachable + // state keeps the failure class it always surfaced as. + if (!row) { + return yield* Effect.fail( + new DatabaseError({ + message: "Failed to ensure system-integrations actor row", + cause: undefined, + }), + ) + } + return row.id + }) + + const recordEvent = ( + issueId: ErrorIssueId, + actorId: ActorId, + type: "created" | "state_change" | "regression", + opts: { + readonly fromState?: WorkflowState + readonly toState?: WorkflowState + readonly payload?: Record + }, + ) => + tx.insert(errorIssueEvents).values({ + id: decodeEventId(randomUUID()), + orgId: input.orgId, + issueId, + actorId, + type, + fromState: opts.fromState ?? null, + toState: opts.toState ?? null, + payloadJson: opts.payload ?? {}, + createdAt: msToDate(input.timestamp), + }) + + const applyExistingIssue = (prior: ErrorIssueRow) => + Effect.gen(function* () { + const issueId = prior.id + // A wontfix issue with an active or indefinite snooze stays untouched. + const snoozeActive = + prior.workflowState === "wontfix" && + (prior.snoozeUntil == null || dateToMs(prior.snoozeUntil) > input.timestamp) + if (snoozeActive) return { issueId, action: "skipped" as const } + + yield* tx + .update(errorIssues) + .set({ + lastSeenAt: msToDate(input.timestamp), + occurrenceCount: sql`${errorIssues.occurrenceCount} + 1`, + exceptionMessage: input.description, + sourceRefJson, + updatedAt: msToDate(input.timestamp), + }) + .where(and(eq(errorIssues.orgId, input.orgId), eq(errorIssues.id, prior.id))) + + const reopenFrom: WorkflowState | null = + prior.workflowState === "done" || prior.workflowState === "wontfix" + ? prior.workflowState + : null + if (reopenFrom === null) return { issueId, action: "refreshed" as const } + + yield* tx + .update(errorIssues) + .set({ + workflowState: "triage", + resolvedAt: null, + resolvedByActorId: null, + snoozeUntil: null, + updatedAt: msToDate(input.timestamp), + }) + .where(and(eq(errorIssues.orgId, input.orgId), eq(errorIssues.id, prior.id))) + const actorId = yield* ensureActor + yield* recordEvent(issueId, actorId, "state_change", { + fromState: reopenFrom, + toState: "triage", + payload: { viaRegression: true, event: input.payload.event }, + }) + yield* recordEvent(issueId, actorId, "regression", { + payload: { event: input.payload.event, database: databaseName }, + }) + return { issueId, action: "reopened" as const } + }) + + const prior: ErrorIssueRow | undefined = (yield* tx + .select() .from(errorIssues) .where( and( @@ -653,136 +784,62 @@ export const upsertPlanetScaleIssue: ( ), ) .limit(1) - )[0] - // A receipt survives hard deletion of its issue; redelivery stays consumed. - return { issueId: existing?.id ?? null, action: "skipped" as const } - } - - const ensureActor = async (): Promise => { - const selectActor = () => - tx - .select() - .from(actors) - .where( - and( - eq(actors.orgId, input.orgId), - eq(actors.type, "agent"), - eq(actors.agentName, SYSTEM_INTEGRATIONS_AGENT_NAME), - ), - ) - .limit(1) - const existing = await selectActor() - if (existing[0]) return existing[0].id - await tx - .insert(actors) - .values({ - id: decodeActorId(randomUUID()), - orgId: input.orgId, - type: "agent", - userId: null, - agentName: SYSTEM_INTEGRATIONS_AGENT_NAME, - model: null, - capabilitiesJson: ["system", "integration-issues"], - createdBy: null, - createdAt: msToDate(actorTimestamp), - lastActiveAt: msToDate(actorTimestamp), - }) - .onConflictDoNothing() - const row = (await selectActor())[0] - if (!row) throw new Error("Failed to ensure system-integrations actor row") - return row.id - } - - const recordEvent = ( - issueId: ErrorIssueId, - actorId: ActorId, - type: "created" | "state_change" | "regression", - opts: { - readonly fromState?: WorkflowState - readonly toState?: WorkflowState - readonly payload?: Record - }, - ) => - tx.insert(errorIssueEvents).values({ - id: decodeEventId(randomUUID()), - orgId: input.orgId, - issueId, - actorId, - type, - fromState: opts.fromState ?? null, - toState: opts.toState ?? null, - payloadJson: opts.payload ?? {}, - createdAt: msToDate(input.timestamp), - }) - - const prior: ErrorIssueRow | undefined = ( - await tx - .select() - .from(errorIssues) - .where( - and( - eq(errorIssues.orgId, input.orgId), - eq(errorIssues.fingerprintHash, fingerprintHash), - ), - ) - .limit(1) - .for("update") - )[0] - - if (prior === undefined) { - const candidateId = decodeIssueId(randomUUID()) - // The transaction-scoped fingerprint lock protects the absent-row gap. - // Keep the conflict handling defensive for writers that predate the lock. - const claimed = await tx - .insert(errorIssues) - .values({ - id: candidateId, - orgId: input.orgId, - kind: "integration", - sourceRefJson, - fingerprintHash, - serviceName, - exceptionType: input.title, - exceptionMessage: input.description, - errorLabel: input.title, - topFrame: "", - workflowState: "triage", - priority: 3, - severity: input.severity, - severitySource: "detector", - assignedActorId: null, - leaseHolderActorId: null, - leaseExpiresAt: null, - claimedAt: null, - notes: null, - firstSeenAt: msToDate(input.timestamp), - lastSeenAt: msToDate(input.timestamp), - occurrenceCount: 1, - resolvedAt: null, - resolvedByActorId: null, - snoozeUntil: null, - archivedAt: null, - createdAt: msToDate(input.timestamp), - updatedAt: msToDate(input.timestamp), - }) - .onConflictDoNothing({ - target: [errorIssues.orgId, errorIssues.fingerprintHash], - }) - .returning({ id: errorIssues.id }) - - const insertedId = claimed[0]?.id - if (insertedId !== undefined) { - const actorId = await ensureActor() - await recordEvent(insertedId, actorId, "created", { - toState: "triage", - payload: sourceRefJson, - }) - return { issueId: insertedId, action: "created" as const } - } - // A writer outside this lock won. Re-read it under a row lock and apply - // this distinct occurrence instead of committing a receipt-only skip. - const winner = ( - await tx + .for("update"))[0] + + if (prior !== undefined) return yield* applyExistingIssue(prior) + + const candidateId = decodeIssueId(randomUUID()) + // The transaction-scoped fingerprint lock protects the absent-row gap. + // Keep the conflict handling defensive for writers that predate the lock. + const claimed = yield* tx + .insert(errorIssues) + .values({ + id: candidateId, + orgId: input.orgId, + kind: "integration", + sourceRefJson, + fingerprintHash, + serviceName, + exceptionType: input.title, + exceptionMessage: input.description, + errorLabel: input.title, + topFrame: "", + workflowState: "triage", + priority: 3, + severity: input.severity, + severitySource: "detector", + assignedActorId: null, + leaseHolderActorId: null, + leaseExpiresAt: null, + claimedAt: null, + notes: null, + firstSeenAt: msToDate(input.timestamp), + lastSeenAt: msToDate(input.timestamp), + occurrenceCount: 1, + resolvedAt: null, + resolvedByActorId: null, + snoozeUntil: null, + archivedAt: null, + createdAt: msToDate(input.timestamp), + updatedAt: msToDate(input.timestamp), + }) + .onConflictDoNothing({ + target: [errorIssues.orgId, errorIssues.fingerprintHash], + }) + .returning({ id: errorIssues.id }) + + const insertedId = claimed[0]?.id + if (insertedId !== undefined) { + const actorId = yield* ensureActor + yield* recordEvent(insertedId, actorId, "created", { + toState: "triage", + payload: sourceRefJson, + }) + return { issueId: insertedId, action: "created" as const } + } + // A writer outside this lock won. Re-read it under a row lock and apply + // this distinct occurrence instead of committing a receipt-only skip. + const winner = (yield* tx .select() .from(errorIssues) .where( @@ -792,65 +849,24 @@ export const upsertPlanetScaleIssue: ( ), ) .limit(1) - .for("update") - )[0] - if (winner === undefined) - throw new PlanetScaleIssueConflictUnresolved({ - message: "PlanetScale issue conflict winner was not visible in the transaction", - orgId: input.orgId, - fingerprintHash, - }) - return await applyExistingIssue(winner) - } - - return await applyExistingIssue(prior) - - async function applyExistingIssue(prior: ErrorIssueRow): Promise { - const issueId = prior.id - // A wontfix issue with an active or indefinite snooze stays untouched. - const snoozeActive = - prior.workflowState === "wontfix" && - (prior.snoozeUntil == null || dateToMs(prior.snoozeUntil) > input.timestamp) - if (snoozeActive) return { issueId, action: "skipped" as const } - - await tx - .update(errorIssues) - .set({ - lastSeenAt: msToDate(input.timestamp), - occurrenceCount: sql`${errorIssues.occurrenceCount} + 1`, - exceptionMessage: input.description, - sourceRefJson, - updatedAt: msToDate(input.timestamp), - }) - .where(and(eq(errorIssues.orgId, input.orgId), eq(errorIssues.id, prior.id))) - - const reopenFrom: WorkflowState | null = - prior.workflowState === "done" || prior.workflowState === "wontfix" - ? prior.workflowState - : null - if (reopenFrom === null) return { issueId, action: "refreshed" as const } - - await tx - .update(errorIssues) - .set({ - workflowState: "triage", - resolvedAt: null, - resolvedByActorId: null, - snoozeUntil: null, - updatedAt: msToDate(input.timestamp), - }) - .where(and(eq(errorIssues.orgId, input.orgId), eq(errorIssues.id, prior.id))) - const actorId = await ensureActor() - await recordEvent(issueId, actorId, "state_change", { - fromState: reopenFrom, - toState: "triage", - payload: { viaRegression: true, event: input.payload.event }, - }) - await recordEvent(issueId, actorId, "regression", { - payload: { event: input.payload.event, database: databaseName }, - }) - return { issueId, action: "reopened" as const } - } - }), - ) + .for("update"))[0] + if (winner === undefined) { + return yield* Effect.fail( + new PlanetScaleIssueConflictUnresolved({ + message: + "PlanetScale issue conflict winner was not visible in the transaction", + orgId: input.orgId, + fingerprintHash, + }), + ) + } + return yield* applyExistingIssue(winner) + }), + ), + ) + .pipe( + Effect.catchTag("@maple/api/planetscale/PlanetScaleIssueConflictUnresolved", (error) => + Effect.fail(new DatabaseError({ message: error.message, cause: error })), + ), + ) }) diff --git a/packages/backend/src/services/integrations/scrape-check-retention.ts b/packages/backend/src/services/integrations/scrape-check-retention.ts index b56ee5365..c9b261e91 100644 --- a/packages/backend/src/services/integrations/scrape-check-retention.ts +++ b/packages/backend/src/services/integrations/scrape-check-retention.ts @@ -67,35 +67,39 @@ export const pruneChecksForTargets = Effect.fn("ScrapeCheckRetention.pruneForTar const capCandidates = targets.filter(canExceedRowCap) const database = yield* Database - yield* database.execute(async (db) => { - await db - .delete(scrapeTargetChecks) - .where(and(inArray(scrapeTargetChecks.targetId, ids), lt(scrapeTargetChecks.checkedAt, cutoff))) - - // Cap backstop for misconfigured/very short intervals: drop everything - // older than the Nth-newest row per target. The OFFSET probe rides the - // (target_id, checked_at) index, so it stays cheaper than a window - // function over the target's full history. - for (const target of capCandidates) { - const capBoundary = await db - .select({ checkedAt: scrapeTargetChecks.checkedAt }) - .from(scrapeTargetChecks) - .where(eq(scrapeTargetChecks.targetId, target.id)) - .orderBy(desc(scrapeTargetChecks.checkedAt)) - .limit(1) - .offset(CHECK_MAX_ROWS_PER_TARGET - 1) - const boundary = capBoundary[0] - if (boundary === undefined) continue - await db + yield* database.execute((db) => + Effect.gen(function* () { + yield* db .delete(scrapeTargetChecks) .where( - and( - eq(scrapeTargetChecks.targetId, target.id), - lt(scrapeTargetChecks.checkedAt, boundary.checkedAt), - ), + and(inArray(scrapeTargetChecks.targetId, ids), lt(scrapeTargetChecks.checkedAt, cutoff)), ) - } - }) + + // Cap backstop for misconfigured/very short intervals: drop everything + // older than the Nth-newest row per target. The OFFSET probe rides the + // (target_id, checked_at) index, so it stays cheaper than a window + // function over the target's full history. + for (const target of capCandidates) { + const capBoundary = yield* db + .select({ checkedAt: scrapeTargetChecks.checkedAt }) + .from(scrapeTargetChecks) + .where(eq(scrapeTargetChecks.targetId, target.id)) + .orderBy(desc(scrapeTargetChecks.checkedAt)) + .limit(1) + .offset(CHECK_MAX_ROWS_PER_TARGET - 1) + const boundary = capBoundary[0] + if (boundary === undefined) continue + yield* db + .delete(scrapeTargetChecks) + .where( + and( + eq(scrapeTargetChecks.targetId, target.id), + lt(scrapeTargetChecks.checkedAt, boundary.checkedAt), + ), + ) + } + }), + ) yield* Effect.annotateCurrentSpan({ "scrape.retention.targets": targets.length, "scrape.retention.cap_probed": capCandidates.length, diff --git a/packages/backend/src/services/integrations/vcs/VcsRepository.ts b/packages/backend/src/services/integrations/vcs/VcsRepository.ts index 6246802d3..7a143374a 100644 --- a/packages/backend/src/services/integrations/vcs/VcsRepository.ts +++ b/packages/backend/src/services/integrations/vcs/VcsRepository.ts @@ -447,42 +447,44 @@ export class VcsRepository extends Context.Service()("@maple/api/ // snapshot writes nothing instead of resurrecting purged data. yield* database .execute((db) => - db.transaction(async (tx) => { - const parent = await tx - .select({ id: vcsInstallations.id }) - .from(vcsInstallations) - .where(eq(vcsInstallations.id, installation.id)) - .for("share") - if (parent.length === 0) return - for (const chunk of Arr.chunksOf(values, INSERT_CHUNK_SIZE)) { - await tx - .insert(vcsRepositories) - .values(chunk) - .onConflictDoUpdate({ - target: [ - vcsRepositories.orgId, - vcsRepositories.provider, - vcsRepositories.externalRepoId, - ], - set: { - // A repo can be reassigned to a different installation; refresh the link. - installationId: sql`excluded.installation_id`, - owner: sql`excluded.owner`, - name: sql`excluded.name`, - fullName: sql`excluded.full_name`, - defaultBranch: sql`excluded.default_branch`, - htmlUrl: sql`excluded.html_url`, - isPrivate: sql`excluded.is_private`, - isArchived: sql`excluded.is_archived`, - // Reactivate on re-add: a repo present in this upsert is visible - // again, so a prior "removed" soft-delete is cleared. (sync_status - // is deliberately left untouched — its backfill state still holds.) - status: sql`excluded.status`, - updatedAt: sql`excluded.updated_at`, - }, - }) - } - }), + db.transaction((tx) => + Effect.gen(function* () { + const parent = yield* tx + .select({ id: vcsInstallations.id }) + .from(vcsInstallations) + .where(eq(vcsInstallations.id, installation.id)) + .for("share") + if (parent.length === 0) return + for (const chunk of Arr.chunksOf(values, INSERT_CHUNK_SIZE)) { + yield* tx + .insert(vcsRepositories) + .values(chunk) + .onConflictDoUpdate({ + target: [ + vcsRepositories.orgId, + vcsRepositories.provider, + vcsRepositories.externalRepoId, + ], + set: { + // A repo can be reassigned to a different installation; refresh the link. + installationId: sql`excluded.installation_id`, + owner: sql`excluded.owner`, + name: sql`excluded.name`, + fullName: sql`excluded.full_name`, + defaultBranch: sql`excluded.default_branch`, + htmlUrl: sql`excluded.html_url`, + isPrivate: sql`excluded.is_private`, + isArchived: sql`excluded.is_archived`, + // Reactivate on re-add: a repo present in this upsert is visible + // again, so a prior "removed" soft-delete is cleared. (sync_status + // is deliberately left untouched — its backfill state still holds.) + status: sql`excluded.status`, + updatedAt: sql`excluded.updated_at`, + }, + }) + } + }), + ), ) .pipe(Effect.mapError(toPersistenceError)) }) @@ -525,13 +527,15 @@ export class VcsRepository extends Context.Service()("@maple/api/ // in-flight sync either commits before this delete acquires the row lock // (its rows are swept below) or sees the row gone and writes nothing. yield* database.execute((db) => - db.transaction(async (tx) => { - await tx.delete(vcsRepositories).where(eq(vcsRepositories.id, repositoryId)) - await tx - .delete(vcsRepositoryBranches) - .where(eq(vcsRepositoryBranches.repositoryId, repositoryId)) - await tx.delete(vcsCommits).where(eq(vcsCommits.repositoryId, repositoryId)) - }), + db.transaction((tx) => + Effect.gen(function* () { + yield* tx.delete(vcsRepositories).where(eq(vcsRepositories.id, repositoryId)) + yield* tx + .delete(vcsRepositoryBranches) + .where(eq(vcsRepositoryBranches.repositoryId, repositoryId)) + yield* tx.delete(vcsCommits).where(eq(vcsCommits.repositoryId, repositoryId)) + }), + ), ) return true }, Effect.mapError(toPersistenceError)) @@ -626,33 +630,35 @@ export class VcsRepository extends Context.Service()("@maple/api/ // commits. Returns 0 when the repo is gone. return yield* database .execute((db) => - db.transaction(async (tx) => { - const parent = await tx - .select({ id: vcsRepositories.id }) - .from(vcsRepositories) - .where(eq(vcsRepositories.id, repository.id)) - .for("share") - if (parent.length === 0) return 0 - for (const chunk of Arr.chunksOf(values, INSERT_CHUNK_SIZE)) { - await tx - .insert(vcsCommits) - .values(chunk) - .onConflictDoUpdate({ - target: [vcsCommits.repositoryId, vcsCommits.sha], - set: { - message: sql`excluded.message`, - authorName: sql`excluded.author_name`, - authorEmail: sql`excluded.author_email`, - authorLogin: sql`excluded.author_login`, - authorAvatarUrl: sql`excluded.author_avatar_url`, - authoredAt: sql`excluded.authored_at`, - committedAt: sql`excluded.committed_at`, - htmlUrl: sql`excluded.html_url`, - }, - }) - } - return values.length - }), + db.transaction((tx) => + Effect.gen(function* () { + const parent = yield* tx + .select({ id: vcsRepositories.id }) + .from(vcsRepositories) + .where(eq(vcsRepositories.id, repository.id)) + .for("share") + if (parent.length === 0) return 0 + for (const chunk of Arr.chunksOf(values, INSERT_CHUNK_SIZE)) { + yield* tx + .insert(vcsCommits) + .values(chunk) + .onConflictDoUpdate({ + target: [vcsCommits.repositoryId, vcsCommits.sha], + set: { + message: sql`excluded.message`, + authorName: sql`excluded.author_name`, + authorEmail: sql`excluded.author_email`, + authorLogin: sql`excluded.author_login`, + authorAvatarUrl: sql`excluded.author_avatar_url`, + authoredAt: sql`excluded.authored_at`, + committedAt: sql`excluded.committed_at`, + htmlUrl: sql`excluded.html_url`, + }, + }) + } + return values.length + }), + ), ) .pipe(Effect.mapError(toPersistenceError)) }) @@ -736,27 +742,32 @@ export class VcsRepository extends Context.Service()("@maple/api/ // worker cannot repopulate the picker of a purged repo. yield* database .execute((db) => - db.transaction(async (tx) => { - const parent = await tx - .select({ id: vcsRepositories.id }) - .from(vcsRepositories) - .where(eq(vcsRepositories.id, repository.id)) - .for("share") - if (parent.length === 0) return - for (const chunk of Arr.chunksOf(values, INSERT_CHUNK_SIZE)) { - await tx - .insert(vcsRepositoryBranches) - .values(chunk) - .onConflictDoUpdate({ - target: [vcsRepositoryBranches.repositoryId, vcsRepositoryBranches.name], - set: { - isDefault: sql`excluded.is_default`, - headSha: sql`excluded.head_sha`, - updatedAt: sql`excluded.updated_at`, - }, - }) - } - }), + db.transaction((tx) => + Effect.gen(function* () { + const parent = yield* tx + .select({ id: vcsRepositories.id }) + .from(vcsRepositories) + .where(eq(vcsRepositories.id, repository.id)) + .for("share") + if (parent.length === 0) return + for (const chunk of Arr.chunksOf(values, INSERT_CHUNK_SIZE)) { + yield* tx + .insert(vcsRepositoryBranches) + .values(chunk) + .onConflictDoUpdate({ + target: [ + vcsRepositoryBranches.repositoryId, + vcsRepositoryBranches.name, + ], + set: { + isDefault: sql`excluded.is_default`, + headSha: sql`excluded.head_sha`, + updatedAt: sql`excluded.updated_at`, + }, + }) + } + }), + ), ) .pipe(Effect.mapError(toPersistenceError)) }) @@ -827,22 +838,30 @@ export class VcsRepository extends Context.Service()("@maple/api/ const now = msToDate(yield* Clock.currentTimeMillis) yield* database .execute((db) => - db.transaction(async (tx) => { - await tx - .update(vcsRepositories) - .set({ trackedBranch: branch, updatedAt: now }) - .where( - and(eq(vcsRepositories.orgId, orgId), eq(vcsRepositories.id, repositoryId)), - ) - // Org-scope the commit wipe too: without it, an id belonging to - // another org would no-op the update but still delete that org's - // commits. Mirrors the org-scoped delete in purgeRepository. - await tx - .delete(vcsCommits) - .where( - and(eq(vcsCommits.orgId, orgId), eq(vcsCommits.repositoryId, repositoryId)), - ) - }), + db.transaction((tx) => + Effect.gen(function* () { + yield* tx + .update(vcsRepositories) + .set({ trackedBranch: branch, updatedAt: now }) + .where( + and( + eq(vcsRepositories.orgId, orgId), + eq(vcsRepositories.id, repositoryId), + ), + ) + // Org-scope the commit wipe too: without it, an id belonging to + // another org would no-op the update but still delete that org's + // commits. Mirrors the org-scoped delete in purgeRepository. + yield* tx + .delete(vcsCommits) + .where( + and( + eq(vcsCommits.orgId, orgId), + eq(vcsCommits.repositoryId, repositoryId), + ), + ) + }), + ), ) .pipe(Effect.mapError(toPersistenceError)) }) @@ -933,39 +952,44 @@ export class VcsRepository extends Context.Service()("@maple/api/ // repo-id read happens INSIDE the transaction, after the installation // delete, so a repo created moments earlier is swept rather than escaping. yield* database.execute((db) => - db.transaction(async (tx) => { - await tx - .delete(vcsInstallations) - .where( - and(eq(vcsInstallations.orgId, orgId), eq(vcsInstallations.id, installationId)), - ) - const repoRows = await tx - .select({ id: vcsRepositories.id }) - .from(vcsRepositories) - .where( - and( - eq(vcsRepositories.orgId, orgId), - eq(vcsRepositories.installationId, installationId), - ), - ) - const repoIds = repoRows.map((r) => r.id) - await tx - .delete(vcsRepositories) - .where( - and( - eq(vcsRepositories.orgId, orgId), - eq(vcsRepositories.installationId, installationId), - ), - ) - for (const chunk of Arr.chunksOf(repoIds, INARRAY_CHUNK_SIZE)) { - await tx - .delete(vcsRepositoryBranches) - .where(inArray(vcsRepositoryBranches.repositoryId, chunk)) - } - for (const chunk of Arr.chunksOf(repoIds, INARRAY_CHUNK_SIZE)) { - await tx.delete(vcsCommits).where(inArray(vcsCommits.repositoryId, chunk)) - } - }), + db.transaction((tx) => + Effect.gen(function* () { + yield* tx + .delete(vcsInstallations) + .where( + and( + eq(vcsInstallations.orgId, orgId), + eq(vcsInstallations.id, installationId), + ), + ) + const repoRows = yield* tx + .select({ id: vcsRepositories.id }) + .from(vcsRepositories) + .where( + and( + eq(vcsRepositories.orgId, orgId), + eq(vcsRepositories.installationId, installationId), + ), + ) + const repoIds = repoRows.map((r) => r.id) + yield* tx + .delete(vcsRepositories) + .where( + and( + eq(vcsRepositories.orgId, orgId), + eq(vcsRepositories.installationId, installationId), + ), + ) + for (const chunk of Arr.chunksOf(repoIds, INARRAY_CHUNK_SIZE)) { + yield* tx + .delete(vcsRepositoryBranches) + .where(inArray(vcsRepositoryBranches.repositoryId, chunk)) + } + for (const chunk of Arr.chunksOf(repoIds, INARRAY_CHUNK_SIZE)) { + yield* tx.delete(vcsCommits).where(inArray(vcsCommits.repositoryId, chunk)) + } + }), + ), ) }, Effect.mapError(toPersistenceError)) diff --git a/packages/backend/src/services/org/ApiKeysService.ts b/packages/backend/src/services/org/ApiKeysService.ts index a880a6a5b..e8062dcdf 100644 --- a/packages/backend/src/services/org/ApiKeysService.ts +++ b/packages/backend/src/services/org/ApiKeysService.ts @@ -14,7 +14,7 @@ import { RoleName, } from "@maple/domain/http" import { API_KEY_PREFIX, apiKeys, generateApiKey, hashApiKey, parseIngestKeyLookupHmacKey } from "@maple/db" -import { and, desc, eq, getTableColumns, gt, isNotNull, isNull, lt, ne, or, sql } from "drizzle-orm" +import { and, desc, eq, getColumns, gt, isNotNull, isNull, lt, ne, or, sql } from "drizzle-orm" import { Clock, Effect, Layer, Option, Redacted, Schema, Context } from "effect" import { Database } from "@maple/backend/platform/DatabaseLive" import { readTxid, txidColumn } from "@maple/backend/platform/electric-txid" @@ -383,36 +383,38 @@ export class ApiKeysService extends Context.Service()("@maple/ap const inserted = yield* database .execute((db) => - db.transaction(async (tx) => { - await tx - .update(apiKeys) - .set({ revoked: true, revokedAt: msToDate(now) }) - .where(liveDeviceKeysFor(orgId, params.deviceId)) - return await tx - .insert(apiKeys) - .values({ - id, - orgId, - name: params.name, - description: null, - keyHash, - keyPrefix, - kind: "device", - scopes, - expiresAt: msToDate(expiresAt), - createdAt: new Date(now), - createdBy: userId, - createdByEmail, - metadataJson: { - source: WIDGET_DEVICE_KEY_SOURCE, - // The minting session's roles, so the key on the - // phone can never outrank the human who created it. - roles: [...params.roles], - deviceId: params.deviceId, - }, - }) - .returning(txidColumn) - }), + db.transaction((tx) => + Effect.gen(function* () { + yield* tx + .update(apiKeys) + .set({ revoked: true, revokedAt: msToDate(now) }) + .where(liveDeviceKeysFor(orgId, params.deviceId)) + return yield* tx + .insert(apiKeys) + .values({ + id, + orgId, + name: params.name, + description: null, + keyHash, + keyPrefix, + kind: "device", + scopes, + expiresAt: msToDate(expiresAt), + createdAt: new Date(now), + createdBy: userId, + createdByEmail, + metadataJson: { + source: WIDGET_DEVICE_KEY_SOURCE, + // The minting session's roles, so the key on the + // phone can never outrank the human who created it. + roles: [...params.roles], + deviceId: params.deviceId, + }, + }) + .returning(txidColumn) + }), + ), ) .pipe(Effect.mapError(toPersistenceError)) const txid = readTxid(inserted) @@ -491,41 +493,43 @@ export class ApiKeysService extends Context.Service()("@maple/ap // revoke/roll race can no longer mint a successor for a dead one. const rolled = yield* database .execute((db) => - db.transaction(async (tx) => { - const claimed = await tx - .update(apiKeys) - .set({ revoked: true, revokedAt: msToDate(now) }) - .where( - and( - eq(apiKeys.id, keyId), - eq(apiKeys.orgId, orgId), - eq(apiKeys.revoked, false), - ), - ) - .returning({ ...getTableColumns(apiKeys), ...txidColumn }) - if (claimed.length === 0) return undefined - const source = claimed[0] - - await tx.insert(apiKeys).values({ - id, - orgId, - name: source.name, - description: source.description ?? null, - keyHash, - keyPrefix, - kind: source.kind, - scopes: source.scopes ?? null, - // Carry the role metadata across: a rolled key that lost it - // would resolve with the null (= `root`) default, silently - // escalating a CLI/MCP key beyond its creator's roles. - metadataJson: source.metadataJson, - expiresAt: null, - createdAt: msToDate(now), - createdBy: userId, - createdByEmail, - }) - return source - }), + db.transaction((tx) => + Effect.gen(function* () { + const claimed = yield* tx + .update(apiKeys) + .set({ revoked: true, revokedAt: msToDate(now) }) + .where( + and( + eq(apiKeys.id, keyId), + eq(apiKeys.orgId, orgId), + eq(apiKeys.revoked, false), + ), + ) + .returning({ ...getColumns(apiKeys), ...txidColumn }) + if (claimed.length === 0) return undefined + const source = claimed[0] + + yield* tx.insert(apiKeys).values({ + id, + orgId, + name: source.name, + description: source.description ?? null, + keyHash, + keyPrefix, + kind: source.kind, + scopes: source.scopes ?? null, + // Carry the role metadata across: a rolled key that lost it + // would resolve with the null (= `root`) default, silently + // escalating a CLI/MCP key beyond its creator's roles. + metadataJson: source.metadataJson, + expiresAt: null, + createdAt: msToDate(now), + createdBy: userId, + createdByEmail, + }) + return source + }), + ), ) .pipe(Effect.mapError(toPersistenceError)) @@ -569,26 +573,28 @@ export class ApiKeysService extends Context.Service()("@maple/ap // (which would also replicate a pointless row out through Electric). const revokedRows = yield* database .execute((db) => - db.transaction(async (tx) => { - const claimed = await tx - .update(apiKeys) - .set({ revoked: true, revokedAt: msToDate(now) }) - .where( - and( - eq(apiKeys.id, keyId), - eq(apiKeys.orgId, orgId), - eq(apiKeys.revoked, false), - ), - ) - .returning({ ...getTableColumns(apiKeys), ...txidColumn }) - // An MCP key is the visible face of an OAuth grant whose refresh - // family re-mints it hourly. Flipping `revoked` here alone was a - // no-op the next rotation undid, so the family goes with it. - if (claimed[0]?.kind === "mcp") { - await revokeFamiliesForAccessKeys(tx, [claimed[0].id], msToDate(now)) - } - return claimed - }), + db.transaction((tx) => + Effect.gen(function* () { + const claimed = yield* tx + .update(apiKeys) + .set({ revoked: true, revokedAt: msToDate(now) }) + .where( + and( + eq(apiKeys.id, keyId), + eq(apiKeys.orgId, orgId), + eq(apiKeys.revoked, false), + ), + ) + .returning({ ...getColumns(apiKeys), ...txidColumn }) + // An MCP key is the visible face of an OAuth grant whose refresh + // family re-mints it hourly. Flipping `revoked` here alone was a + // no-op the next rotation undid, so the family goes with it. + if (claimed[0]?.kind === "mcp") { + yield* revokeFamiliesForAccessKeys(tx, [claimed[0].id], msToDate(now)) + } + return claimed + }), + ), ) .pipe(Effect.mapError(toPersistenceError)) diff --git a/packages/backend/src/services/org/OrganizationService.org-scoped-tables.test.ts b/packages/backend/src/services/org/OrganizationService.org-scoped-tables.test.ts index 98f16c44c..c50d652d0 100644 --- a/packages/backend/src/services/org/OrganizationService.org-scoped-tables.test.ts +++ b/packages/backend/src/services/org/OrganizationService.org-scoped-tables.test.ts @@ -1,6 +1,6 @@ import { describe, expect, it } from "vitest" import * as schema from "@maple/db" -import { getTableColumns, is, Table } from "drizzle-orm" +import { getColumns, is, Table } from "drizzle-orm" import { ORG_DELETE_REGISTRY } from "./OrganizationService" /** @@ -17,7 +17,7 @@ const orgScopedTables = () => { const found = new Map() for (const [exportName, value] of Object.entries(schema)) { if (!is(value, Table)) continue - const columns = getTableColumns(value) + const columns = getColumns(value) for (const column of Object.values(columns)) { if (ORG_COLUMN_NAMES.has(column.name)) { found.set(exportName, column.name) diff --git a/packages/backend/src/services/org/SetupAuditService.ts b/packages/backend/src/services/org/SetupAuditService.ts index d727852de..4c2c2b9be 100644 --- a/packages/backend/src/services/org/SetupAuditService.ts +++ b/packages/backend/src/services/org/SetupAuditService.ts @@ -85,168 +85,173 @@ const make: Effect.Effect { - const [ - onboarding, - rules, - ruleStates, - destinations, - notificationPolicy, - anomalySettings, - dashboardRows, - sampling, - mappings, - clickhouse, - connections, - cloudflare, - repositories, - targets, - openRecommendations, - ] = await Promise.all([ - db - .select({ firstDataReceivedAt: orgOnboardingState.firstDataReceivedAt }) - .from(orgOnboardingState) - .where(eq(orgOnboardingState.orgId, orgId)) - .limit(1), - db - .select({ - id: alertRules.id, - name: alertRules.name, - enabled: alertRules.enabled, - destinationIdsJson: alertRules.destinationIdsJson, - windowMinutes: alertRules.windowMinutes, - lastScheduledAt: alertRules.lastScheduledAt, - createdAt: alertRules.createdAt, - }) - .from(alertRules) - .where(eq(alertRules.orgId, orgId)), - db - .select({ - ruleId: alertRuleStates.ruleId, - lastEvaluatedAt: alertRuleStates.lastEvaluatedAt, - lastError: alertRuleStates.lastError, - }) - .from(alertRuleStates) - .where(eq(alertRuleStates.orgId, orgId)), - db - .select({ - id: alertDestinations.id, - name: alertDestinations.name, - enabled: alertDestinations.enabled, - lastTestError: alertDestinations.lastTestError, - }) - .from(alertDestinations) - .where(eq(alertDestinations.orgId, orgId)), - db - .select({ - enabled: errorNotificationPolicies.enabled, - destinationIdsJson: errorNotificationPolicies.destinationIdsJson, - }) - .from(errorNotificationPolicies) - .where(eq(errorNotificationPolicies.orgId, orgId)) - .limit(1), - db - .select({ enabled: anomalyDetectorSettings.enabled }) - .from(anomalyDetectorSettings) - .where(eq(anomalyDetectorSettings.orgId, orgId)) - .limit(1), - db - .select({ count: sql`count(*)::int` }) - .from(dashboards) - .where(eq(dashboards.orgId, orgId)), - db - .select({ - traceSampleRatio: orgIngestSamplingPolicies.traceSampleRatio, - alwaysKeepErrorSpans: orgIngestSamplingPolicies.alwaysKeepErrorSpans, - }) - .from(orgIngestSamplingPolicies) - .where(eq(orgIngestSamplingPolicies.orgId, orgId)) - .limit(1), - db - .select({ - id: orgIngestAttributeMappings.id, - name: orgIngestAttributeMappings.name, - enabled: orgIngestAttributeMappings.enabled, - sourceContext: orgIngestAttributeMappings.sourceContext, - sourceKey: orgIngestAttributeMappings.sourceKey, - targetKey: orgIngestAttributeMappings.targetKey, - }) - .from(orgIngestAttributeMappings) - .where(eq(orgIngestAttributeMappings.orgId, orgId)), - db - .select({ - syncStatus: orgClickHouseSettings.syncStatus, - lastSyncError: orgClickHouseSettings.lastSyncError, - schemaVersion: orgClickHouseSettings.schemaVersion, - }) - .from(orgClickHouseSettings) - .where(eq(orgClickHouseSettings.orgId, orgId)) - .limit(1), - db - .select({ - provider: oauthConnections.provider, - revokedAt: oauthConnections.revokedAt, - }) - .from(oauthConnections) - .where(eq(oauthConnections.orgId, orgId)), - db - .select({ - dataset: cloudflareAnalyticsState.dataset, - zoneName: cloudflareAnalyticsState.zoneName, - enabled: cloudflareAnalyticsState.enabled, - lastSuccessAt: cloudflareAnalyticsState.lastSuccessAt, - lastErrorAt: cloudflareAnalyticsState.lastErrorAt, - lastError: cloudflareAnalyticsState.lastError, - }) - .from(cloudflareAnalyticsState) - .where(eq(cloudflareAnalyticsState.orgId, orgId)), - db - .select({ - id: vcsRepositories.id, - fullName: vcsRepositories.fullName, - syncStatus: vcsRepositories.syncStatus, - lastSyncError: vcsRepositories.lastSyncError, - }) - .from(vcsRepositories) - .where(eq(vcsRepositories.orgId, orgId)), - db - .select({ - id: scrapeTargets.id, - name: scrapeTargets.name, - enabled: scrapeTargets.enabled, - lastScrapeError: scrapeTargets.lastScrapeError, - }) - .from(scrapeTargets) - .where(eq(scrapeTargets.orgId, orgId)), - db - .select({ count: sql`count(*)::int` }) - .from(orgRecommendationIssues) - .where( - and( - eq(orgRecommendationIssues.orgId, orgId), - eq(orgRecommendationIssues.status, "open"), - ), - ), - ]) + database.execute((db) => + Effect.gen(function* () { + const [ + onboarding, + rules, + ruleStates, + destinations, + notificationPolicy, + anomalySettings, + dashboardRows, + sampling, + mappings, + clickhouse, + connections, + cloudflare, + repositories, + targets, + openRecommendations, + ] = yield* Effect.all( + [ + db + .select({ firstDataReceivedAt: orgOnboardingState.firstDataReceivedAt }) + .from(orgOnboardingState) + .where(eq(orgOnboardingState.orgId, orgId)) + .limit(1), + db + .select({ + id: alertRules.id, + name: alertRules.name, + enabled: alertRules.enabled, + destinationIdsJson: alertRules.destinationIdsJson, + windowMinutes: alertRules.windowMinutes, + lastScheduledAt: alertRules.lastScheduledAt, + createdAt: alertRules.createdAt, + }) + .from(alertRules) + .where(eq(alertRules.orgId, orgId)), + db + .select({ + ruleId: alertRuleStates.ruleId, + lastEvaluatedAt: alertRuleStates.lastEvaluatedAt, + lastError: alertRuleStates.lastError, + }) + .from(alertRuleStates) + .where(eq(alertRuleStates.orgId, orgId)), + db + .select({ + id: alertDestinations.id, + name: alertDestinations.name, + enabled: alertDestinations.enabled, + lastTestError: alertDestinations.lastTestError, + }) + .from(alertDestinations) + .where(eq(alertDestinations.orgId, orgId)), + db + .select({ + enabled: errorNotificationPolicies.enabled, + destinationIdsJson: errorNotificationPolicies.destinationIdsJson, + }) + .from(errorNotificationPolicies) + .where(eq(errorNotificationPolicies.orgId, orgId)) + .limit(1), + db + .select({ enabled: anomalyDetectorSettings.enabled }) + .from(anomalyDetectorSettings) + .where(eq(anomalyDetectorSettings.orgId, orgId)) + .limit(1), + db + .select({ count: sql`count(*)::int` }) + .from(dashboards) + .where(eq(dashboards.orgId, orgId)), + db + .select({ + traceSampleRatio: orgIngestSamplingPolicies.traceSampleRatio, + alwaysKeepErrorSpans: orgIngestSamplingPolicies.alwaysKeepErrorSpans, + }) + .from(orgIngestSamplingPolicies) + .where(eq(orgIngestSamplingPolicies.orgId, orgId)) + .limit(1), + db + .select({ + id: orgIngestAttributeMappings.id, + name: orgIngestAttributeMappings.name, + enabled: orgIngestAttributeMappings.enabled, + sourceContext: orgIngestAttributeMappings.sourceContext, + sourceKey: orgIngestAttributeMappings.sourceKey, + targetKey: orgIngestAttributeMappings.targetKey, + }) + .from(orgIngestAttributeMappings) + .where(eq(orgIngestAttributeMappings.orgId, orgId)), + db + .select({ + syncStatus: orgClickHouseSettings.syncStatus, + lastSyncError: orgClickHouseSettings.lastSyncError, + schemaVersion: orgClickHouseSettings.schemaVersion, + }) + .from(orgClickHouseSettings) + .where(eq(orgClickHouseSettings.orgId, orgId)) + .limit(1), + db + .select({ + provider: oauthConnections.provider, + revokedAt: oauthConnections.revokedAt, + }) + .from(oauthConnections) + .where(eq(oauthConnections.orgId, orgId)), + db + .select({ + dataset: cloudflareAnalyticsState.dataset, + zoneName: cloudflareAnalyticsState.zoneName, + enabled: cloudflareAnalyticsState.enabled, + lastSuccessAt: cloudflareAnalyticsState.lastSuccessAt, + lastErrorAt: cloudflareAnalyticsState.lastErrorAt, + lastError: cloudflareAnalyticsState.lastError, + }) + .from(cloudflareAnalyticsState) + .where(eq(cloudflareAnalyticsState.orgId, orgId)), + db + .select({ + id: vcsRepositories.id, + fullName: vcsRepositories.fullName, + syncStatus: vcsRepositories.syncStatus, + lastSyncError: vcsRepositories.lastSyncError, + }) + .from(vcsRepositories) + .where(eq(vcsRepositories.orgId, orgId)), + db + .select({ + id: scrapeTargets.id, + name: scrapeTargets.name, + enabled: scrapeTargets.enabled, + lastScrapeError: scrapeTargets.lastScrapeError, + }) + .from(scrapeTargets) + .where(eq(scrapeTargets.orgId, orgId)), + db + .select({ count: sql`count(*)::int` }) + .from(orgRecommendationIssues) + .where( + and( + eq(orgRecommendationIssues.orgId, orgId), + eq(orgRecommendationIssues.status, "open"), + ), + ), + ], + { concurrency: "unbounded" }, + ) - return { - onboarding, - rules, - ruleStates, - destinations, - notificationPolicy, - anomalySettings, - dashboardRows, - sampling, - mappings, - clickhouse, - connections, - cloudflare, - repositories, - targets, - openRecommendations, - } - }), + return { + onboarding, + rules, + ruleStates, + destinations, + notificationPolicy, + anomalySettings, + dashboardRows, + sampling, + mappings, + clickhouse, + connections, + cloudflare, + repositories, + targets, + openRecommendations, + } + }), + ), ) const clickhouseRow = rows.clickhouse[0] diff --git a/packages/db/drizzle.config.ts b/packages/db/drizzle.config.ts index 2ebfa0fa4..cda21d477 100644 --- a/packages/db/drizzle.config.ts +++ b/packages/db/drizzle.config.ts @@ -10,5 +10,7 @@ export default defineConfig({ dbCredentials: { url: process.env.DATABASE_URL ?? "postgres://maple:maple@localhost:5499/maple", }, - strict: true, + // v1 manages every schema by default; Maple owns only `public` (the `drizzle` + // migrations schema and Electric's publication objects must stay out of diffs). + schemaFilter: ["public"], }) diff --git a/packages/db/drizzle/0000_windy_raza.sql b/packages/db/drizzle/20260612232920_windy_raza/migration.sql similarity index 100% rename from packages/db/drizzle/0000_windy_raza.sql rename to packages/db/drizzle/20260612232920_windy_raza/migration.sql diff --git a/packages/db/drizzle/20260612232920_windy_raza/snapshot.json b/packages/db/drizzle/20260612232920_windy_raza/snapshot.json new file mode 100644 index 000000000..48abb44e6 --- /dev/null +++ b/packages/db/drizzle/20260612232920_windy_raza/snapshot.json @@ -0,0 +1,8674 @@ +{ + "id": "cb9cbb50-2b84-4796-b353-a8781cec9399", + "prevIds": [ + "00000000-0000-0000-0000-000000000000" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model_override", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_openrouter_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_openrouter_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_ciphertext", + "schema": "public", + "table": "org_openrouter_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_iv", + "schema": "public", + "table": "org_openrouter_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_tag", + "schema": "public", + "table": "org_openrouter_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_last4", + "schema": "public", + "table": "org_openrouter_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_openrouter_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_openrouter_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_openrouter_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_openrouter_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_openrouter_settings_org_id_pk", + "schema": "public", + "table": "org_openrouter_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0001_naive_scalphunter.sql b/packages/db/drizzle/20260623201222_naive_scalphunter/migration.sql similarity index 100% rename from packages/db/drizzle/0001_naive_scalphunter.sql rename to packages/db/drizzle/20260623201222_naive_scalphunter/migration.sql diff --git a/packages/db/drizzle/20260623201222_naive_scalphunter/snapshot.json b/packages/db/drizzle/20260623201222_naive_scalphunter/snapshot.json new file mode 100644 index 000000000..9a489b572 --- /dev/null +++ b/packages/db/drizzle/20260623201222_naive_scalphunter/snapshot.json @@ -0,0 +1,9564 @@ +{ + "id": "58e27c3a-f8f5-41db-9c51-151f19d9f96f", + "prevIds": [ + "cb9cbb50-2b84-4796-b353-a8781cec9399" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0002_bizarre_triathlon.sql b/packages/db/drizzle/20260628142814_bizarre_triathlon/migration.sql similarity index 100% rename from packages/db/drizzle/0002_bizarre_triathlon.sql rename to packages/db/drizzle/20260628142814_bizarre_triathlon/migration.sql diff --git a/packages/db/drizzle/20260628142814_bizarre_triathlon/snapshot.json b/packages/db/drizzle/20260628142814_bizarre_triathlon/snapshot.json new file mode 100644 index 000000000..d606a8ec1 --- /dev/null +++ b/packages/db/drizzle/20260628142814_bizarre_triathlon/snapshot.json @@ -0,0 +1,9946 @@ +{ + "id": "bbf78dc1-583d-473f-9a6f-62296755db5d", + "prevIds": [ + "58e27c3a-f8f5-41db-9c51-151f19d9f96f" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0003_backfill_github_commit_avatars.sql b/packages/db/drizzle/20260702113501_backfill_github_commit_avatars/migration.sql similarity index 100% rename from packages/db/drizzle/0003_backfill_github_commit_avatars.sql rename to packages/db/drizzle/20260702113501_backfill_github_commit_avatars/migration.sql diff --git a/packages/db/drizzle/20260702113501_backfill_github_commit_avatars/snapshot.json b/packages/db/drizzle/20260702113501_backfill_github_commit_avatars/snapshot.json new file mode 100644 index 000000000..07ca95711 --- /dev/null +++ b/packages/db/drizzle/20260702113501_backfill_github_commit_avatars/snapshot.json @@ -0,0 +1,9946 @@ +{ + "id": "85baabb9-e723-47c7-b52e-7a67d2d7d8b0", + "prevIds": [ + "bbf78dc1-583d-473f-9a6f-62296755db5d" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0004_premium_korg.sql b/packages/db/drizzle/20260704212000_premium_korg/migration.sql similarity index 100% rename from packages/db/drizzle/0004_premium_korg.sql rename to packages/db/drizzle/20260704212000_premium_korg/migration.sql diff --git a/packages/db/drizzle/20260704212000_premium_korg/snapshot.json b/packages/db/drizzle/20260704212000_premium_korg/snapshot.json new file mode 100644 index 000000000..a08fcc595 --- /dev/null +++ b/packages/db/drizzle/20260704212000_premium_korg/snapshot.json @@ -0,0 +1,9959 @@ +{ + "id": "137e0050-a264-4a2e-bf0a-e2f8433e9ef7", + "prevIds": [ + "85baabb9-e723-47c7-b52e-7a67d2d7d8b0" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0005_loud_pyro.sql b/packages/db/drizzle/20260704212001_loud_pyro/migration.sql similarity index 100% rename from packages/db/drizzle/0005_loud_pyro.sql rename to packages/db/drizzle/20260704212001_loud_pyro/migration.sql diff --git a/packages/db/drizzle/20260704212001_loud_pyro/snapshot.json b/packages/db/drizzle/20260704212001_loud_pyro/snapshot.json new file mode 100644 index 000000000..839a7270b --- /dev/null +++ b/packages/db/drizzle/20260704212001_loud_pyro/snapshot.json @@ -0,0 +1,9972 @@ +{ + "id": "421a2536-5822-41c6-a2c5-f322ab8b0fba", + "prevIds": [ + "137e0050-a264-4a2e-bf0a-e2f8433e9ef7" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0006_natural_marvel_apes.sql b/packages/db/drizzle/20260704212002_natural_marvel_apes/migration.sql similarity index 100% rename from packages/db/drizzle/0006_natural_marvel_apes.sql rename to packages/db/drizzle/20260704212002_natural_marvel_apes/migration.sql diff --git a/packages/db/drizzle/20260704212002_natural_marvel_apes/snapshot.json b/packages/db/drizzle/20260704212002_natural_marvel_apes/snapshot.json new file mode 100644 index 000000000..27754ca30 --- /dev/null +++ b/packages/db/drizzle/20260704212002_natural_marvel_apes/snapshot.json @@ -0,0 +1,10252 @@ +{ + "id": "cb5366dd-6209-4c49-bada-eb7535a928ad", + "prevIds": [ + "421a2536-5822-41c6-a2c5-f322ab8b0fba" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0007_slippery_winter_soldier.sql b/packages/db/drizzle/20260704212003_slippery_winter_soldier/migration.sql similarity index 100% rename from packages/db/drizzle/0007_slippery_winter_soldier.sql rename to packages/db/drizzle/20260704212003_slippery_winter_soldier/migration.sql diff --git a/packages/db/drizzle/20260704212003_slippery_winter_soldier/snapshot.json b/packages/db/drizzle/20260704212003_slippery_winter_soldier/snapshot.json new file mode 100644 index 000000000..b703be4d7 --- /dev/null +++ b/packages/db/drizzle/20260704212003_slippery_winter_soldier/snapshot.json @@ -0,0 +1,10265 @@ +{ + "id": "6ddf6987-d54b-48b5-9412-c4a0d5f8fc66", + "prevIds": [ + "cb5366dd-6209-4c49-bada-eb7535a928ad" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0008_elite_butterfly.sql b/packages/db/drizzle/20260704212004_elite_butterfly/migration.sql similarity index 100% rename from packages/db/drizzle/0008_elite_butterfly.sql rename to packages/db/drizzle/20260704212004_elite_butterfly/migration.sql diff --git a/packages/db/drizzle/20260704212004_elite_butterfly/snapshot.json b/packages/db/drizzle/20260704212004_elite_butterfly/snapshot.json new file mode 100644 index 000000000..2d0cc1464 --- /dev/null +++ b/packages/db/drizzle/20260704212004_elite_butterfly/snapshot.json @@ -0,0 +1,10278 @@ +{ + "id": "344e71a4-0780-4d1f-8402-b561ca6194d1", + "prevIds": [ + "6ddf6987-d54b-48b5-9412-c4a0d5f8fc66" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0009_electric_publication.sql b/packages/db/drizzle/20260704212005_electric_publication/migration.sql similarity index 100% rename from packages/db/drizzle/0009_electric_publication.sql rename to packages/db/drizzle/20260704212005_electric_publication/migration.sql diff --git a/packages/db/drizzle/20260704212005_electric_publication/snapshot.json b/packages/db/drizzle/20260704212005_electric_publication/snapshot.json new file mode 100644 index 000000000..8b3766afa --- /dev/null +++ b/packages/db/drizzle/20260704212005_electric_publication/snapshot.json @@ -0,0 +1,10278 @@ +{ + "id": "6a20cc5b-1bd9-4cc1-b5d3-823f94dfd6b0", + "prevIds": [ + "344e71a4-0780-4d1f-8402-b561ca6194d1" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0011_electric_publication_wave1.sql b/packages/db/drizzle/20260706224607_electric_publication_wave1/migration.sql similarity index 100% rename from packages/db/drizzle/0011_electric_publication_wave1.sql rename to packages/db/drizzle/20260706224607_electric_publication_wave1/migration.sql diff --git a/packages/db/drizzle/20260706224607_electric_publication_wave1/snapshot.json b/packages/db/drizzle/20260706224607_electric_publication_wave1/snapshot.json new file mode 100644 index 000000000..2aa3442ea --- /dev/null +++ b/packages/db/drizzle/20260706224607_electric_publication_wave1/snapshot.json @@ -0,0 +1,10291 @@ +{ + "id": "8c4b199f-f711-4b87-961a-1672eb536e58", + "prevIds": [ + "346220d3-f1f9-494e-bd78-7f916ee31352" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0010_huge_dexter_bennett.sql b/packages/db/drizzle/20260706224607_huge_dexter_bennett/migration.sql similarity index 100% rename from packages/db/drizzle/0010_huge_dexter_bennett.sql rename to packages/db/drizzle/20260706224607_huge_dexter_bennett/migration.sql diff --git a/packages/db/drizzle/20260706224607_huge_dexter_bennett/snapshot.json b/packages/db/drizzle/20260706224607_huge_dexter_bennett/snapshot.json new file mode 100644 index 000000000..0c8896fb2 --- /dev/null +++ b/packages/db/drizzle/20260706224607_huge_dexter_bennett/snapshot.json @@ -0,0 +1,10291 @@ +{ + "id": "346220d3-f1f9-494e-bd78-7f916ee31352", + "prevIds": [ + "6a20cc5b-1bd9-4cc1-b5d3-823f94dfd6b0" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0012_cute_veda.sql b/packages/db/drizzle/20260711131107_cute_veda/migration.sql similarity index 100% rename from packages/db/drizzle/0012_cute_veda.sql rename to packages/db/drizzle/20260711131107_cute_veda/migration.sql diff --git a/packages/db/drizzle/20260711131107_cute_veda/snapshot.json b/packages/db/drizzle/20260711131107_cute_veda/snapshot.json new file mode 100644 index 000000000..3ddcb81a3 --- /dev/null +++ b/packages/db/drizzle/20260711131107_cute_veda/snapshot.json @@ -0,0 +1,10959 @@ +{ + "id": "8baf3939-c56d-4338-b7ee-43205d8877b7", + "prevIds": [ + "8c4b199f-f711-4b87-961a-1672eb536e58" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0013_sour_dagger.sql b/packages/db/drizzle/20260715104944_sour_dagger/migration.sql similarity index 100% rename from packages/db/drizzle/0013_sour_dagger.sql rename to packages/db/drizzle/20260715104944_sour_dagger/migration.sql diff --git a/packages/db/drizzle/20260715104944_sour_dagger/snapshot.json b/packages/db/drizzle/20260715104944_sour_dagger/snapshot.json new file mode 100644 index 000000000..fa87b7d34 --- /dev/null +++ b/packages/db/drizzle/20260715104944_sour_dagger/snapshot.json @@ -0,0 +1,10972 @@ +{ + "id": "0edb883f-4a57-4ced-9565-d8e5cd2304b7", + "prevIds": [ + "8baf3939-c56d-4338-b7ee-43205d8877b7" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0014_electric_publication_api_keys.sql b/packages/db/drizzle/20260715235245_electric_publication_api_keys/migration.sql similarity index 100% rename from packages/db/drizzle/0014_electric_publication_api_keys.sql rename to packages/db/drizzle/20260715235245_electric_publication_api_keys/migration.sql diff --git a/packages/db/drizzle/20260715235245_electric_publication_api_keys/snapshot.json b/packages/db/drizzle/20260715235245_electric_publication_api_keys/snapshot.json new file mode 100644 index 000000000..0852a7479 --- /dev/null +++ b/packages/db/drizzle/20260715235245_electric_publication_api_keys/snapshot.json @@ -0,0 +1,10972 @@ +{ + "id": "2afa2ceb-68b8-4728-b35c-a470b1bfe052", + "prevIds": [ + "0edb883f-4a57-4ced-9565-d8e5cd2304b7" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0015_funny_gabe_jones.sql b/packages/db/drizzle/20260716181047_funny_gabe_jones/migration.sql similarity index 100% rename from packages/db/drizzle/0015_funny_gabe_jones.sql rename to packages/db/drizzle/20260716181047_funny_gabe_jones/migration.sql diff --git a/packages/db/drizzle/20260716181047_funny_gabe_jones/snapshot.json b/packages/db/drizzle/20260716181047_funny_gabe_jones/snapshot.json new file mode 100644 index 000000000..0ab197775 --- /dev/null +++ b/packages/db/drizzle/20260716181047_funny_gabe_jones/snapshot.json @@ -0,0 +1,11193 @@ +{ + "id": "1e3a55ce-bc0a-4d6b-92f7-8acdb4291f59", + "prevIds": [ + "2afa2ceb-68b8-4728-b35c-a470b1bfe052" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0016_lowly_famine.sql b/packages/db/drizzle/20260720223204_lowly_famine/migration.sql similarity index 100% rename from packages/db/drizzle/0016_lowly_famine.sql rename to packages/db/drizzle/20260720223204_lowly_famine/migration.sql diff --git a/packages/db/drizzle/20260720223204_lowly_famine/snapshot.json b/packages/db/drizzle/20260720223204_lowly_famine/snapshot.json new file mode 100644 index 000000000..60991fbe2 --- /dev/null +++ b/packages/db/drizzle/20260720223204_lowly_famine/snapshot.json @@ -0,0 +1,11206 @@ +{ + "id": "641d5c00-6783-4702-8a85-761b0a28db3f", + "prevIds": [ + "1e3a55ce-bc0a-4d6b-92f7-8acdb4291f59" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0017_powerful_robin_chapel.sql b/packages/db/drizzle/20260721110839_powerful_robin_chapel/migration.sql similarity index 100% rename from packages/db/drizzle/0017_powerful_robin_chapel.sql rename to packages/db/drizzle/20260721110839_powerful_robin_chapel/migration.sql diff --git a/packages/db/drizzle/20260721110839_powerful_robin_chapel/snapshot.json b/packages/db/drizzle/20260721110839_powerful_robin_chapel/snapshot.json new file mode 100644 index 000000000..bbc50b672 --- /dev/null +++ b/packages/db/drizzle/20260721110839_powerful_robin_chapel/snapshot.json @@ -0,0 +1,11459 @@ +{ + "id": "76a82c57-abd9-4a37-a6fa-6d33b265f96b", + "prevIds": [ + "641d5c00-6783-4702-8a85-761b0a28db3f" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0018_brown_brood.sql b/packages/db/drizzle/20260721133909_brown_brood/migration.sql similarity index 100% rename from packages/db/drizzle/0018_brown_brood.sql rename to packages/db/drizzle/20260721133909_brown_brood/migration.sql diff --git a/packages/db/drizzle/20260721133909_brown_brood/snapshot.json b/packages/db/drizzle/20260721133909_brown_brood/snapshot.json new file mode 100644 index 000000000..2030ad63c --- /dev/null +++ b/packages/db/drizzle/20260721133909_brown_brood/snapshot.json @@ -0,0 +1,12106 @@ +{ + "id": "13bceb5c-2ea1-412b-9694-dabaad5393b8", + "prevIds": [ + "76a82c57-abd9-4a37-a6fa-6d33b265f96b" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_org_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_states_org_idx", + "schema": "public", + "table": "error_issue_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0019_chemical_synch.sql b/packages/db/drizzle/20260725221443_chemical_synch/migration.sql similarity index 100% rename from packages/db/drizzle/0019_chemical_synch.sql rename to packages/db/drizzle/20260725221443_chemical_synch/migration.sql diff --git a/packages/db/drizzle/20260725221443_chemical_synch/snapshot.json b/packages/db/drizzle/20260725221443_chemical_synch/snapshot.json new file mode 100644 index 000000000..a0f30720f --- /dev/null +++ b/packages/db/drizzle/20260725221443_chemical_synch/snapshot.json @@ -0,0 +1,12092 @@ +{ + "id": "ea467b74-4d9a-412a-a4c3-4ace47087683", + "prevIds": [ + "13bceb5c-2ea1-412b-9694-dabaad5393b8" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0020_material_hannibal_king.sql b/packages/db/drizzle/20260726154020_material_hannibal_king/migration.sql similarity index 100% rename from packages/db/drizzle/0020_material_hannibal_king.sql rename to packages/db/drizzle/20260726154020_material_hannibal_king/migration.sql diff --git a/packages/db/drizzle/20260726154020_material_hannibal_king/snapshot.json b/packages/db/drizzle/20260726154020_material_hannibal_king/snapshot.json new file mode 100644 index 000000000..cb67655b7 --- /dev/null +++ b/packages/db/drizzle/20260726154020_material_hannibal_king/snapshot.json @@ -0,0 +1,12131 @@ +{ + "id": "d42b58a4-c78d-4621-a3e6-95d6c49b0553", + "prevIds": [ + "ea467b74-4d9a-412a-a4c3-4ace47087683" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0021_brave_jackpot.sql b/packages/db/drizzle/20260726154319_brave_jackpot/migration.sql similarity index 100% rename from packages/db/drizzle/0021_brave_jackpot.sql rename to packages/db/drizzle/20260726154319_brave_jackpot/migration.sql diff --git a/packages/db/drizzle/20260726154319_brave_jackpot/snapshot.json b/packages/db/drizzle/20260726154319_brave_jackpot/snapshot.json new file mode 100644 index 000000000..c643f03e4 --- /dev/null +++ b/packages/db/drizzle/20260726154319_brave_jackpot/snapshot.json @@ -0,0 +1,12157 @@ +{ + "id": "099f754a-afd1-4f7b-8db9-3e11df60aec5", + "prevIds": [ + "d42b58a4-c78d-4621-a3e6-95d6c49b0553" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0022_electric_publication_prune.sql b/packages/db/drizzle/20260727105910_electric_publication_prune/migration.sql similarity index 100% rename from packages/db/drizzle/0022_electric_publication_prune.sql rename to packages/db/drizzle/20260727105910_electric_publication_prune/migration.sql diff --git a/packages/db/drizzle/20260727105910_electric_publication_prune/snapshot.json b/packages/db/drizzle/20260727105910_electric_publication_prune/snapshot.json new file mode 100644 index 000000000..fba81b306 --- /dev/null +++ b/packages/db/drizzle/20260727105910_electric_publication_prune/snapshot.json @@ -0,0 +1,12157 @@ +{ + "id": "8881abe6-19a0-48be-b930-88b43e90810c", + "prevIds": [ + "099f754a-afd1-4f7b-8db9-3e11df60aec5" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0023_charming_bulldozer.sql b/packages/db/drizzle/20260728214942_charming_bulldozer/migration.sql similarity index 100% rename from packages/db/drizzle/0023_charming_bulldozer.sql rename to packages/db/drizzle/20260728214942_charming_bulldozer/migration.sql diff --git a/packages/db/drizzle/20260728214942_charming_bulldozer/snapshot.json b/packages/db/drizzle/20260728214942_charming_bulldozer/snapshot.json new file mode 100644 index 000000000..d81780bb7 --- /dev/null +++ b/packages/db/drizzle/20260728214942_charming_bulldozer/snapshot.json @@ -0,0 +1,12470 @@ +{ + "id": "152dce32-2d6c-487d-8278-2aeb9d29eaa3", + "prevIds": [ + "8881abe6-19a0-48be-b930-88b43e90810c" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0024_burly_grim_reaper.sql b/packages/db/drizzle/20260728231434_burly_grim_reaper/migration.sql similarity index 100% rename from packages/db/drizzle/0024_burly_grim_reaper.sql rename to packages/db/drizzle/20260728231434_burly_grim_reaper/migration.sql diff --git a/packages/db/drizzle/20260728231434_burly_grim_reaper/snapshot.json b/packages/db/drizzle/20260728231434_burly_grim_reaper/snapshot.json new file mode 100644 index 000000000..47b5aa4be --- /dev/null +++ b/packages/db/drizzle/20260728231434_burly_grim_reaper/snapshot.json @@ -0,0 +1,12483 @@ +{ + "id": "02ca067d-a47d-4582-85df-d7c0d11e135f", + "prevIds": [ + "152dce32-2d6c-487d-8278-2aeb9d29eaa3" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0025_majestic_randall_flagg.sql b/packages/db/drizzle/20260729213304_majestic_randall_flagg/migration.sql similarity index 100% rename from packages/db/drizzle/0025_majestic_randall_flagg.sql rename to packages/db/drizzle/20260729213304_majestic_randall_flagg/migration.sql diff --git a/packages/db/drizzle/20260729213304_majestic_randall_flagg/snapshot.json b/packages/db/drizzle/20260729213304_majestic_randall_flagg/snapshot.json new file mode 100644 index 000000000..b25035498 --- /dev/null +++ b/packages/db/drizzle/20260729213304_majestic_randall_flagg/snapshot.json @@ -0,0 +1,12694 @@ +{ + "id": "ed9b467d-665c-4ec2-a3d9-ae5d9ec7fe9f", + "prevIds": [ + "02ca067d-a47d-4582-85df-d7c0d11e135f" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metric_aggregation", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_spend_limits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_spend_limits_pkey", + "schema": "public", + "table": "org_spend_limits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthly_limit_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'notify'", + "generated": null, + "identity": null, + "name": "enforcement_mode", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[80,100]'", + "generated": null, + "identity": null, + "name": "alert_threshold_percents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "feature_caps", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evaluated_spend_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breached_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paused_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "paused_features", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "notified_thresholds", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cycle_started_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0026_windy_bromley.sql b/packages/db/drizzle/20260731091943_windy_bromley/migration.sql similarity index 100% rename from packages/db/drizzle/0026_windy_bromley.sql rename to packages/db/drizzle/20260731091943_windy_bromley/migration.sql diff --git a/packages/db/drizzle/20260731091943_windy_bromley/snapshot.json b/packages/db/drizzle/20260731091943_windy_bromley/snapshot.json new file mode 100644 index 000000000..61dbaf93e --- /dev/null +++ b/packages/db/drizzle/20260731091943_windy_bromley/snapshot.json @@ -0,0 +1,12655 @@ +{ + "id": "cd402582-5321-4ca1-84cd-34369d5c8b97", + "prevIds": [ + "ed9b467d-665c-4ec2-a3d9-ae5d9ec7fe9f" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_spend_limits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_spend_limits_pkey", + "schema": "public", + "table": "org_spend_limits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthly_limit_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'notify'", + "generated": null, + "identity": null, + "name": "enforcement_mode", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[80,100]'", + "generated": null, + "identity": null, + "name": "alert_threshold_percents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "feature_caps", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evaluated_spend_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breached_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paused_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "paused_features", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "notified_thresholds", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cycle_started_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0027_pretty_chat.sql b/packages/db/drizzle/20260731161557_pretty_chat/migration.sql similarity index 100% rename from packages/db/drizzle/0027_pretty_chat.sql rename to packages/db/drizzle/20260731161557_pretty_chat/migration.sql diff --git a/packages/db/drizzle/20260731161557_pretty_chat/snapshot.json b/packages/db/drizzle/20260731161557_pretty_chat/snapshot.json new file mode 100644 index 000000000..2d60bcdec --- /dev/null +++ b/packages/db/drizzle/20260731161557_pretty_chat/snapshot.json @@ -0,0 +1,12731 @@ +{ + "id": "3990bcec-e464-4f60-af52-55b87d3877b0", + "prevIds": [ + "cd402582-5321-4ca1-84cd-34369d5c8b97" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_spend_limits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_spend_limits_pkey", + "schema": "public", + "table": "org_spend_limits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthly_limit_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'notify'", + "generated": null, + "identity": null, + "name": "enforcement_mode", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[80,100]'", + "generated": null, + "identity": null, + "name": "alert_threshold_percents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "feature_caps", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evaluated_spend_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breached_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paused_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "paused_features", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "notified_thresholds", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cycle_started_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0029_purge_orphan_metric_incidents.sql b/packages/db/drizzle/20260731161557_purge_orphan_metric_incidents/migration.sql similarity index 100% rename from packages/db/drizzle/0029_purge_orphan_metric_incidents.sql rename to packages/db/drizzle/20260731161557_purge_orphan_metric_incidents/migration.sql diff --git a/packages/db/drizzle/20260731161557_purge_orphan_metric_incidents/snapshot.json b/packages/db/drizzle/20260731161557_purge_orphan_metric_incidents/snapshot.json new file mode 100644 index 000000000..55ad48f58 --- /dev/null +++ b/packages/db/drizzle/20260731161557_purge_orphan_metric_incidents/snapshot.json @@ -0,0 +1,12731 @@ +{ + "id": "4f09fa8d-3d46-4ed1-9042-607a23287b94", + "prevIds": [ + "3990bcec-e464-4f60-af52-55b87d3877b0" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_spend_limits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_spend_limits_pkey", + "schema": "public", + "table": "org_spend_limits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthly_limit_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'notify'", + "generated": null, + "identity": null, + "name": "enforcement_mode", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[80,100]'", + "generated": null, + "identity": null, + "name": "alert_threshold_percents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "feature_caps", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evaluated_spend_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breached_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paused_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "paused_features", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "notified_thresholds", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cycle_started_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0030_planetscale_events.sql b/packages/db/drizzle/20260803234300_planetscale_events/migration.sql similarity index 100% rename from packages/db/drizzle/0030_planetscale_events.sql rename to packages/db/drizzle/20260803234300_planetscale_events/migration.sql diff --git a/packages/db/drizzle/20260803234300_planetscale_events/snapshot.json b/packages/db/drizzle/20260803234300_planetscale_events/snapshot.json new file mode 100644 index 000000000..a2c187be3 --- /dev/null +++ b/packages/db/drizzle/20260803234300_planetscale_events/snapshot.json @@ -0,0 +1,13067 @@ +{ + "id": "d8878bd3-11fe-47fe-b047-0815a648de67", + "prevIds": [ + "4f09fa8d-3d46-4ed1-9042-607a23287b94" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_spend_limits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_spend_limits_pkey", + "schema": "public", + "table": "org_spend_limits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthly_limit_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'notify'", + "generated": null, + "identity": null, + "name": "enforcement_mode", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[80,100]'", + "generated": null, + "identity": null, + "name": "alert_threshold_percents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "feature_caps", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evaluated_spend_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breached_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paused_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "paused_features", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "notified_thresholds", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cycle_started_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0031_investigation_lens_runs.sql b/packages/db/drizzle/20260806002205_investigation_lens_runs/migration.sql similarity index 100% rename from packages/db/drizzle/0031_investigation_lens_runs.sql rename to packages/db/drizzle/20260806002205_investigation_lens_runs/migration.sql diff --git a/packages/db/drizzle/20260806002205_investigation_lens_runs/snapshot.json b/packages/db/drizzle/20260806002205_investigation_lens_runs/snapshot.json new file mode 100644 index 000000000..471a4b4b2 --- /dev/null +++ b/packages/db/drizzle/20260806002205_investigation_lens_runs/snapshot.json @@ -0,0 +1,13572 @@ +{ + "id": "d2ff7853-29e9-4a14-b6c7-006c8a16acbe", + "prevIds": [ + "d8878bd3-11fe-47fe-b047-0815a648de67" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_spend_limits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_spend_limits_pkey", + "schema": "public", + "table": "org_spend_limits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthly_limit_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'notify'", + "generated": null, + "identity": null, + "name": "enforcement_mode", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[80,100]'", + "generated": null, + "identity": null, + "name": "alert_threshold_percents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "feature_caps", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evaluated_spend_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breached_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paused_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "paused_features", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "notified_thresholds", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cycle_started_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0032_fanout_settings.sql b/packages/db/drizzle/20260806091745_fanout_settings/migration.sql similarity index 100% rename from packages/db/drizzle/0032_fanout_settings.sql rename to packages/db/drizzle/20260806091745_fanout_settings/migration.sql diff --git a/packages/db/drizzle/20260806091745_fanout_settings/snapshot.json b/packages/db/drizzle/20260806091745_fanout_settings/snapshot.json new file mode 100644 index 000000000..57e6ec27e --- /dev/null +++ b/packages/db/drizzle/20260806091745_fanout_settings/snapshot.json @@ -0,0 +1,13598 @@ +{ + "id": "28a15535-ff6c-4deb-93fa-218f20be8703", + "prevIds": [ + "d2ff7853-29e9-4a14-b6c7-006c8a16acbe" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "fanout_enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "60", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_spend_limits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_spend_limits_pkey", + "schema": "public", + "table": "org_spend_limits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthly_limit_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'notify'", + "generated": null, + "identity": null, + "name": "enforcement_mode", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[80,100]'", + "generated": null, + "identity": null, + "name": "alert_threshold_percents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "feature_caps", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evaluated_spend_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breached_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paused_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "paused_features", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "notified_thresholds", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cycle_started_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0033_lens_run_attempt.sql b/packages/db/drizzle/20260806114234_lens_run_attempt/migration.sql similarity index 100% rename from packages/db/drizzle/0033_lens_run_attempt.sql rename to packages/db/drizzle/20260806114234_lens_run_attempt/migration.sql diff --git a/packages/db/drizzle/20260806114234_lens_run_attempt/snapshot.json b/packages/db/drizzle/20260806114234_lens_run_attempt/snapshot.json new file mode 100644 index 000000000..55cf88d3e --- /dev/null +++ b/packages/db/drizzle/20260806114234_lens_run_attempt/snapshot.json @@ -0,0 +1,13618 @@ +{ + "id": "5ec1bdd0-8098-4902-bf3b-90376265bd21", + "prevIds": [ + "28a15535-ff6c-4deb-93fa-218f20be8703" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "fanout_enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "60", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_spend_limits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_spend_limits_pkey", + "schema": "public", + "table": "org_spend_limits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthly_limit_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'notify'", + "generated": null, + "identity": null, + "name": "enforcement_mode", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[80,100]'", + "generated": null, + "identity": null, + "name": "alert_threshold_percents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "feature_caps", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evaluated_spend_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breached_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paused_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "paused_features", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "notified_thresholds", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cycle_started_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0034_lens_mechanism.sql b/packages/db/drizzle/20260806114753_lens_mechanism/migration.sql similarity index 100% rename from packages/db/drizzle/0034_lens_mechanism.sql rename to packages/db/drizzle/20260806114753_lens_mechanism/migration.sql diff --git a/packages/db/drizzle/20260806114753_lens_mechanism/snapshot.json b/packages/db/drizzle/20260806114753_lens_mechanism/snapshot.json new file mode 100644 index 000000000..fe18c84d3 --- /dev/null +++ b/packages/db/drizzle/20260806114753_lens_mechanism/snapshot.json @@ -0,0 +1,13631 @@ +{ + "id": "95e04c2f-0036-49a2-bd4c-2a3ba208d57b", + "prevIds": [ + "5ec1bdd0-8098-4902-bf3b-90376265bd21" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "fanout_enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "60", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_spend_limits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_spend_limits_pkey", + "schema": "public", + "table": "org_spend_limits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthly_limit_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'notify'", + "generated": null, + "identity": null, + "name": "enforcement_mode", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[80,100]'", + "generated": null, + "identity": null, + "name": "alert_threshold_percents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "feature_caps", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evaluated_spend_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breached_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paused_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "paused_features", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "notified_thresholds", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cycle_started_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0035_planned_investigations.sql b/packages/db/drizzle/20260806233558_planned_investigations/migration.sql similarity index 100% rename from packages/db/drizzle/0035_planned_investigations.sql rename to packages/db/drizzle/20260806233558_planned_investigations/migration.sql diff --git a/packages/db/drizzle/20260806233558_planned_investigations/snapshot.json b/packages/db/drizzle/20260806233558_planned_investigations/snapshot.json new file mode 100644 index 000000000..35511fa76 --- /dev/null +++ b/packages/db/drizzle/20260806233558_planned_investigations/snapshot.json @@ -0,0 +1,13735 @@ +{ + "id": "f50adb8b-0021-4d95-9e31-038472eaf823", + "prevIds": [ + "95e04c2f-0036-49a2-bd4c-2a3ba208d57b" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "fanout_enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_spend_limits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_spend_limits_pkey", + "schema": "public", + "table": "org_spend_limits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "monthly_limit_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'notify'", + "generated": null, + "identity": null, + "name": "enforcement_mode", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[80,100]'", + "generated": null, + "identity": null, + "name": "alert_threshold_percents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "feature_caps", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evaluated_spend_cents", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "breached_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "paused_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "paused_features", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "notified_thresholds", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "cycle_started_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_spend_limits", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0036_remove_org_spend_limits.sql b/packages/db/drizzle/20260808233052_remove_org_spend_limits/migration.sql similarity index 100% rename from packages/db/drizzle/0036_remove_org_spend_limits.sql rename to packages/db/drizzle/20260808233052_remove_org_spend_limits/migration.sql diff --git a/packages/db/drizzle/20260808233052_remove_org_spend_limits/snapshot.json b/packages/db/drizzle/20260808233052_remove_org_spend_limits/snapshot.json new file mode 100644 index 000000000..a6ae247ff --- /dev/null +++ b/packages/db/drizzle/20260808233052_remove_org_spend_limits/snapshot.json @@ -0,0 +1,13524 @@ +{ + "id": "5ac43915-c478-4358-9e08-b33ece10f237", + "prevIds": [ + "f50adb8b-0021-4d95-9e31-038472eaf823" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "ai_triage_runs_pkey", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "context_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "result_json", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "completed_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_incident_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "ai_triage_runs_org_issue_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "ai_triage_runs_org_created_idx", + "schema": "public", + "table": "ai_triage_runs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "fanout_enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0037_electric_publication_investigations.sql b/packages/db/drizzle/20260809100500_electric_publication_investigations/migration.sql similarity index 100% rename from packages/db/drizzle/0037_electric_publication_investigations.sql rename to packages/db/drizzle/20260809100500_electric_publication_investigations/migration.sql diff --git a/packages/db/drizzle/20260809100500_electric_publication_investigations/snapshot.json b/packages/db/drizzle/20260809100500_electric_publication_investigations/snapshot.json new file mode 100644 index 000000000..b4ab1c1dc --- /dev/null +++ b/packages/db/drizzle/20260809100500_electric_publication_investigations/snapshot.json @@ -0,0 +1,13606 @@ +{ + "id": "4f98d76f-3c18-45d9-882b-293708695b62", + "prevIds": [ + "5ac43915-c478-4358-9e08-b33ece10f237" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0038_error_tick_cursor_outbox.sql b/packages/db/drizzle/20260809161357_error_tick_cursor_outbox/migration.sql similarity index 100% rename from packages/db/drizzle/0038_error_tick_cursor_outbox.sql rename to packages/db/drizzle/20260809161357_error_tick_cursor_outbox/migration.sql diff --git a/packages/db/drizzle/20260809161357_error_tick_cursor_outbox/snapshot.json b/packages/db/drizzle/20260809161357_error_tick_cursor_outbox/snapshot.json new file mode 100644 index 000000000..586afd716 --- /dev/null +++ b/packages/db/drizzle/20260809161357_error_tick_cursor_outbox/snapshot.json @@ -0,0 +1,13921 @@ +{ + "id": "39270780-c20d-4f10-ae80-b5bcf7720bf8", + "prevIds": [ + "4f98d76f-3c18-45d9-882b-293708695b62" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0039_investigation_inconclusive_backfill.sql b/packages/db/drizzle/20260809182640_investigation_inconclusive_backfill/migration.sql similarity index 100% rename from packages/db/drizzle/0039_investigation_inconclusive_backfill.sql rename to packages/db/drizzle/20260809182640_investigation_inconclusive_backfill/migration.sql diff --git a/packages/db/drizzle/20260809182640_investigation_inconclusive_backfill/snapshot.json b/packages/db/drizzle/20260809182640_investigation_inconclusive_backfill/snapshot.json new file mode 100644 index 000000000..a10f6024d --- /dev/null +++ b/packages/db/drizzle/20260809182640_investigation_inconclusive_backfill/snapshot.json @@ -0,0 +1,13921 @@ +{ + "id": "a6930e6e-aa02-4dca-b2c5-b4a054168688", + "prevIds": [ + "39270780-c20d-4f10-ae80-b5bcf7720bf8" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0040_dashboard_shares.sql b/packages/db/drizzle/20260815113104_dashboard_shares/migration.sql similarity index 100% rename from packages/db/drizzle/0040_dashboard_shares.sql rename to packages/db/drizzle/20260815113104_dashboard_shares/migration.sql diff --git a/packages/db/drizzle/20260815113104_dashboard_shares/snapshot.json b/packages/db/drizzle/20260815113104_dashboard_shares/snapshot.json new file mode 100644 index 000000000..272b24a39 --- /dev/null +++ b/packages/db/drizzle/20260815113104_dashboard_shares/snapshot.json @@ -0,0 +1,13942 @@ +{ + "id": "b6a16e18-751f-4761-a3a4-91359e47be1c", + "prevIds": [ + "a6930e6e-aa02-4dca-b2c5-b4a054168688" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0041_dashboard_share_id_index.sql b/packages/db/drizzle/20260815222531_dashboard_share_id_index/migration.sql similarity index 100% rename from packages/db/drizzle/0041_dashboard_share_id_index.sql rename to packages/db/drizzle/20260815222531_dashboard_share_id_index/migration.sql diff --git a/packages/db/drizzle/20260815222531_dashboard_share_id_index/snapshot.json b/packages/db/drizzle/20260815222531_dashboard_share_id_index/snapshot.json new file mode 100644 index 000000000..3c166fb6f --- /dev/null +++ b/packages/db/drizzle/20260815222531_dashboard_share_id_index/snapshot.json @@ -0,0 +1,14243 @@ +{ + "id": "4d9de003-fc6f-4e1f-9e40-6cedca1192cf", + "prevIds": [ + "b6a16e18-751f-4761-a3a4-91359e47be1c" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0042_mobile_devices.sql b/packages/db/drizzle/20260817103751_mobile_devices/migration.sql similarity index 100% rename from packages/db/drizzle/0042_mobile_devices.sql rename to packages/db/drizzle/20260817103751_mobile_devices/migration.sql diff --git a/packages/db/drizzle/20260817103751_mobile_devices/snapshot.json b/packages/db/drizzle/20260817103751_mobile_devices/snapshot.json new file mode 100644 index 000000000..5bcc518f9 --- /dev/null +++ b/packages/db/drizzle/20260817103751_mobile_devices/snapshot.json @@ -0,0 +1,14295 @@ +{ + "id": "29b53fd7-dd32-4e7c-89e8-7b3c800558ef", + "prevIds": [ + "4d9de003-fc6f-4e1f-9e40-6cedca1192cf" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0043_alert_destination_auto_disable.sql b/packages/db/drizzle/20260818214649_alert_destination_auto_disable/migration.sql similarity index 100% rename from packages/db/drizzle/0043_alert_destination_auto_disable.sql rename to packages/db/drizzle/20260818214649_alert_destination_auto_disable/migration.sql diff --git a/packages/db/drizzle/20260818214649_alert_destination_auto_disable/snapshot.json b/packages/db/drizzle/20260818214649_alert_destination_auto_disable/snapshot.json new file mode 100644 index 000000000..68511728f --- /dev/null +++ b/packages/db/drizzle/20260818214649_alert_destination_auto_disable/snapshot.json @@ -0,0 +1,14336 @@ +{ + "id": "4b64da6a-ce63-44a7-9c27-e4fdb89af9f2", + "prevIds": [ + "29b53fd7-dd32-4e7c-89e8-7b3c800558ef" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0044_error_fingerprint_v2.sql b/packages/db/drizzle/20260818224733_error_fingerprint_v2/migration.sql similarity index 100% rename from packages/db/drizzle/0044_error_fingerprint_v2.sql rename to packages/db/drizzle/20260818224733_error_fingerprint_v2/migration.sql diff --git a/packages/db/drizzle/20260818224733_error_fingerprint_v2/snapshot.json b/packages/db/drizzle/20260818224733_error_fingerprint_v2/snapshot.json new file mode 100644 index 000000000..11a3b276c --- /dev/null +++ b/packages/db/drizzle/20260818224733_error_fingerprint_v2/snapshot.json @@ -0,0 +1,14602 @@ +{ + "id": "329a2256-51ef-42a9-9ba8-8e1409203033", + "prevIds": [ + "4b64da6a-ce63-44a7-9c27-e4fdb89af9f2" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0045_error_regression_tracking.sql b/packages/db/drizzle/20260819092914_error_regression_tracking/migration.sql similarity index 100% rename from packages/db/drizzle/0045_error_regression_tracking.sql rename to packages/db/drizzle/20260819092914_error_regression_tracking/migration.sql diff --git a/packages/db/drizzle/20260819092914_error_regression_tracking/snapshot.json b/packages/db/drizzle/20260819092914_error_regression_tracking/snapshot.json new file mode 100644 index 000000000..1a6efe7d2 --- /dev/null +++ b/packages/db/drizzle/20260819092914_error_regression_tracking/snapshot.json @@ -0,0 +1,14602 @@ +{ + "id": "f73051c7-e83e-4f8e-a599-8f1ca3e5065e", + "prevIds": [ + "329a2256-51ef-42a9-9ba8-8e1409203033" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0046_live_activities.sql b/packages/db/drizzle/20260819105332_live_activities/migration.sql similarity index 100% rename from packages/db/drizzle/0046_live_activities.sql rename to packages/db/drizzle/20260819105332_live_activities/migration.sql diff --git a/packages/db/drizzle/20260819105332_live_activities/snapshot.json b/packages/db/drizzle/20260819105332_live_activities/snapshot.json new file mode 100644 index 000000000..752574b72 --- /dev/null +++ b/packages/db/drizzle/20260819105332_live_activities/snapshot.json @@ -0,0 +1,14817 @@ +{ + "id": "22510189-9670-45c9-ae72-860908016f38", + "prevIds": [ + "f73051c7-e83e-4f8e-a599-8f1ca3e5065e" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_activity_start_token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "live_activities", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "live_activities_pkey", + "schema": "public", + "table": "live_activities", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activity_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "push_token", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_reason", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "device_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_device_incident_unique", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_incident_idx", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0047_issue_pull_requests_verification.sql b/packages/db/drizzle/20260823223212_issue_pull_requests_verification/migration.sql similarity index 100% rename from packages/db/drizzle/0047_issue_pull_requests_verification.sql rename to packages/db/drizzle/20260823223212_issue_pull_requests_verification/migration.sql diff --git a/packages/db/drizzle/20260823223212_issue_pull_requests_verification/snapshot.json b/packages/db/drizzle/20260823223212_issue_pull_requests_verification/snapshot.json new file mode 100644 index 000000000..258a065be --- /dev/null +++ b/packages/db/drizzle/20260823223212_issue_pull_requests_verification/snapshot.json @@ -0,0 +1,15494 @@ +{ + "id": "696d811c-4601-428c-9558-354ffb150ffd", + "prevIds": [ + "22510189-9670-45c9-ae72-860908016f38" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_activity_start_token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_pull_requests", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_pull_requests_pkey", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repo_full_name", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merge_commit_sha", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "link_source", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linked_by_actor_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_pr_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_repo_number_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issue_verifications", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_verifications_pkey", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pull_request_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'waiting'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verify_after", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "baseline_versions_json", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_rate_per_hour", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict_note", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "post_merge_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "verify_after", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_due_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_issue_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_open_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "live_activities", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "live_activities_pkey", + "schema": "public", + "table": "live_activities", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activity_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "push_token", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_reason", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "device_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_device_incident_unique", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_incident_idx", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0048_anomaly_index_tightening.sql b/packages/db/drizzle/20260826114844_anomaly_index_tightening/migration.sql similarity index 100% rename from packages/db/drizzle/0048_anomaly_index_tightening.sql rename to packages/db/drizzle/20260826114844_anomaly_index_tightening/migration.sql diff --git a/packages/db/drizzle/20260826114844_anomaly_index_tightening/snapshot.json b/packages/db/drizzle/20260826114844_anomaly_index_tightening/snapshot.json new file mode 100644 index 000000000..68ef9111c --- /dev/null +++ b/packages/db/drizzle/20260826114844_anomaly_index_tightening/snapshot.json @@ -0,0 +1,15501 @@ +{ + "id": "db9f2438-7b4d-4e5a-98e6-eb1f4037e272", + "prevIds": [ + "696d811c-4601-428c-9558-354ffb150ffd" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "anomaly_incidents_org_status_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_activity_start_token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_pull_requests", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_pull_requests_pkey", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repo_full_name", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merge_commit_sha", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "link_source", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linked_by_actor_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_pr_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_repo_number_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issue_verifications", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_verifications_pkey", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pull_request_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'waiting'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verify_after", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "baseline_versions_json", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_rate_per_hour", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict_note", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "post_merge_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "verify_after", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_due_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_issue_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_open_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_last_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "live_activities", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "live_activities_pkey", + "schema": "public", + "table": "live_activities", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activity_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "push_token", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_reason", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "device_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_device_incident_unique", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_incident_idx", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0049_home_list_indexes.sql b/packages/db/drizzle/20260828123937_home_list_indexes/migration.sql similarity index 100% rename from packages/db/drizzle/0049_home_list_indexes.sql rename to packages/db/drizzle/20260828123937_home_list_indexes/migration.sql diff --git a/packages/db/drizzle/20260828123937_home_list_indexes/snapshot.json b/packages/db/drizzle/20260828123937_home_list_indexes/snapshot.json new file mode 100644 index 000000000..5f27d1571 --- /dev/null +++ b/packages/db/drizzle/20260828123937_home_list_indexes/snapshot.json @@ -0,0 +1,15522 @@ +{ + "id": "d60d7088-c27b-48cd-94b6-6d9fd59a02ff", + "prevIds": [ + "db9f2438-7b4d-4e5a-98e6-eb1f4037e272" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_status_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_activity_start_token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_pull_requests", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_pull_requests_pkey", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repo_full_name", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merge_commit_sha", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "link_source", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linked_by_actor_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_pr_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_repo_number_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issue_verifications", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_verifications_pkey", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pull_request_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'waiting'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verify_after", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "baseline_versions_json", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_rate_per_hour", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict_note", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "post_merge_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "verify_after", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_due_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_issue_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_open_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_live_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "live_activities", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "live_activities_pkey", + "schema": "public", + "table": "live_activities", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activity_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "push_token", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_reason", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "device_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_device_incident_unique", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_incident_idx", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0050_cloudflare_grant_accounts.sql b/packages/db/drizzle/20260829125904_cloudflare_grant_accounts/migration.sql similarity index 100% rename from packages/db/drizzle/0050_cloudflare_grant_accounts.sql rename to packages/db/drizzle/20260829125904_cloudflare_grant_accounts/migration.sql diff --git a/packages/db/drizzle/20260829125904_cloudflare_grant_accounts/snapshot.json b/packages/db/drizzle/20260829125904_cloudflare_grant_accounts/snapshot.json new file mode 100644 index 000000000..7c4c93b84 --- /dev/null +++ b/packages/db/drizzle/20260829125904_cloudflare_grant_accounts/snapshot.json @@ -0,0 +1,15568 @@ +{ + "id": "4c8a2222-430b-45e3-883e-1b3d57661ac1", + "prevIds": [ + "d60d7088-c27b-48cd-94b6-6d9fd59a02ff" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_status_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "account_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "account_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_account_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_activity_start_token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_pull_requests", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_pull_requests_pkey", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repo_full_name", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merge_commit_sha", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "link_source", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linked_by_actor_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_pr_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_repo_number_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issue_verifications", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_verifications_pkey", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pull_request_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'waiting'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verify_after", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "baseline_versions_json", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_rate_per_hour", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict_note", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "post_merge_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "verify_after", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_due_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_issue_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_open_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_live_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "live_activities", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "live_activities_pkey", + "schema": "public", + "table": "live_activities", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activity_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "push_token", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_reason", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "device_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_device_incident_unique", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_incident_idx", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "granted_accounts_json", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0051_digest_subscription_scope.sql b/packages/db/drizzle/20260831183531_digest_subscription_scope/migration.sql similarity index 100% rename from packages/db/drizzle/0051_digest_subscription_scope.sql rename to packages/db/drizzle/20260831183531_digest_subscription_scope/migration.sql diff --git a/packages/db/drizzle/20260831183531_digest_subscription_scope/snapshot.json b/packages/db/drizzle/20260831183531_digest_subscription_scope/snapshot.json new file mode 100644 index 000000000..182522ebd --- /dev/null +++ b/packages/db/drizzle/20260831183531_digest_subscription_scope/snapshot.json @@ -0,0 +1,15594 @@ +{ + "id": "2bf770ac-48be-4209-8656-d6dbbab7d442", + "prevIds": [ + "4c8a2222-430b-45e3-883e-1b3d57661ac1" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_status_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "account_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "account_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_account_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_activity_start_token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "namespaces_json", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_pull_requests", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_pull_requests_pkey", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repo_full_name", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merge_commit_sha", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "link_source", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linked_by_actor_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_pr_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_repo_number_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issue_verifications", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_verifications_pkey", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pull_request_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'waiting'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verify_after", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "baseline_versions_json", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_rate_per_hour", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict_note", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "post_merge_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "verify_after", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_due_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_issue_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_open_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_live_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "live_activities", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "live_activities_pkey", + "schema": "public", + "table": "live_activities", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activity_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "push_token", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_reason", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "device_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_device_incident_unique", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_incident_idx", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "granted_accounts_json", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0052_mcp_refresh_family_expiry.sql b/packages/db/drizzle/20260901090747_mcp_refresh_family_expiry/migration.sql similarity index 100% rename from packages/db/drizzle/0052_mcp_refresh_family_expiry.sql rename to packages/db/drizzle/20260901090747_mcp_refresh_family_expiry/migration.sql diff --git a/packages/db/drizzle/20260901090747_mcp_refresh_family_expiry/snapshot.json b/packages/db/drizzle/20260901090747_mcp_refresh_family_expiry/snapshot.json new file mode 100644 index 000000000..9ed0ed8c2 --- /dev/null +++ b/packages/db/drizzle/20260901090747_mcp_refresh_family_expiry/snapshot.json @@ -0,0 +1,15607 @@ +{ + "id": "720cf991-e527-459c-8cf8-e928d35329c4", + "prevIds": [ + "2bf770ac-48be-4209-8656-d6dbbab7d442" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_status_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "account_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "account_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_account_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_activity_start_token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "namespaces_json", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_pull_requests", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_pull_requests_pkey", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repo_full_name", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merge_commit_sha", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "link_source", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linked_by_actor_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_pr_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_repo_number_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issue_verifications", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_verifications_pkey", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pull_request_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'waiting'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verify_after", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "baseline_versions_json", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_rate_per_hour", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict_note", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "post_merge_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "verify_after", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_due_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_issue_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_open_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_live_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "live_activities", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "live_activities_pkey", + "schema": "public", + "table": "live_activities", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activity_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "push_token", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_reason", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "device_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_device_incident_unique", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_incident_idx", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "granted_accounts_json", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0053_digest_opt_out.sql b/packages/db/drizzle/20260901105137_digest_opt_out/migration.sql similarity index 100% rename from packages/db/drizzle/0053_digest_opt_out.sql rename to packages/db/drizzle/20260901105137_digest_opt_out/migration.sql diff --git a/packages/db/drizzle/20260901105137_digest_opt_out/snapshot.json b/packages/db/drizzle/20260901105137_digest_opt_out/snapshot.json new file mode 100644 index 000000000..d5a3e679b --- /dev/null +++ b/packages/db/drizzle/20260901105137_digest_opt_out/snapshot.json @@ -0,0 +1,15620 @@ +{ + "id": "17544f97-9468-41aa-96a9-54260c5aad29", + "prevIds": [ + "720cf991-e527-459c-8cf8-e928d35329c4" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_status_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "account_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "account_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_account_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_activity_start_token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opted_out_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "namespaces_json", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_pull_requests", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_pull_requests_pkey", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repo_full_name", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merge_commit_sha", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "link_source", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linked_by_actor_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_pr_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_repo_number_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issue_verifications", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_verifications_pkey", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pull_request_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'waiting'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verify_after", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "baseline_versions_json", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_rate_per_hour", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict_note", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "post_merge_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "verify_after", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_due_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_issue_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_open_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_live_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "live_activities", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "live_activities_pkey", + "schema": "public", + "table": "live_activities", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activity_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "push_token", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_reason", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "device_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_device_incident_unique", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_incident_idx", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "granted_accounts_json", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0054_alert_incident_open_uniqueness.sql b/packages/db/drizzle/20260901175854_alert_incident_open_uniqueness/migration.sql similarity index 100% rename from packages/db/drizzle/0054_alert_incident_open_uniqueness.sql rename to packages/db/drizzle/20260901175854_alert_incident_open_uniqueness/migration.sql diff --git a/packages/db/drizzle/20260901175854_alert_incident_open_uniqueness/snapshot.json b/packages/db/drizzle/20260901175854_alert_incident_open_uniqueness/snapshot.json new file mode 100644 index 000000000..7d3b9d6a3 --- /dev/null +++ b/packages/db/drizzle/20260901175854_alert_incident_open_uniqueness/snapshot.json @@ -0,0 +1,15683 @@ +{ + "id": "08d43f4b-2c3a-4173-8e8e-1999ae66b5d0", + "prevIds": [ + "17544f97-9468-41aa-96a9-54260c5aad29" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "group_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"alert_incidents\".\"status\" = 'open'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_open_group_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_status_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"anomaly_incidents\".\"status\" = 'open'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_open_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "account_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "account_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_account_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_activity_start_token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opted_out_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "namespaces_json", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_pull_requests", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_pull_requests_pkey", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repo_full_name", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merge_commit_sha", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "link_source", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linked_by_actor_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_pr_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_repo_number_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issue_verifications", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_verifications_pkey", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pull_request_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'waiting'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verify_after", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "baseline_versions_json", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_rate_per_hour", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict_note", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "post_merge_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "verify_after", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_due_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_issue_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_open_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_live_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "live_activities", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "live_activities_pkey", + "schema": "public", + "table": "live_activities", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activity_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "push_token", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_reason", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "device_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_device_incident_unique", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_incident_idx", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "granted_accounts_json", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0055_onboarding_reward_claimed.sql b/packages/db/drizzle/20260913224320_onboarding_reward_claimed/migration.sql similarity index 100% rename from packages/db/drizzle/0055_onboarding_reward_claimed.sql rename to packages/db/drizzle/20260913224320_onboarding_reward_claimed/migration.sql diff --git a/packages/db/drizzle/20260913224320_onboarding_reward_claimed/snapshot.json b/packages/db/drizzle/20260913224320_onboarding_reward_claimed/snapshot.json new file mode 100644 index 000000000..7c7fe3b24 --- /dev/null +++ b/packages/db/drizzle/20260913224320_onboarding_reward_claimed/snapshot.json @@ -0,0 +1,15696 @@ +{ + "id": "0cec39f6-3042-46cc-9892-15c0badcb195", + "prevIds": [ + "08d43f4b-2c3a-4173-8e8e-1999ae66b5d0" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "group_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"alert_incidents\".\"status\" = 'open'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_open_group_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_status_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"anomaly_incidents\".\"status\" = 'open'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_open_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "account_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "account_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_account_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_activity_start_token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opted_out_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "namespaces_json", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_pull_requests", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_pull_requests_pkey", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repo_full_name", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merge_commit_sha", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "link_source", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linked_by_actor_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_pr_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_repo_number_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issue_verifications", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_verifications_pkey", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pull_request_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'waiting'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verify_after", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "baseline_versions_json", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_rate_per_hour", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict_note", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "post_merge_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "verify_after", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_due_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_issue_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_open_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_live_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "live_activities", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "live_activities_pkey", + "schema": "public", + "table": "live_activities", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activity_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "push_token", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_reason", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "device_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_device_incident_unique", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_incident_idx", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "granted_accounts_json", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reward_claimed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0056_onboarding_reward_reserved.sql b/packages/db/drizzle/20260914125842_onboarding_reward_reserved/migration.sql similarity index 100% rename from packages/db/drizzle/0056_onboarding_reward_reserved.sql rename to packages/db/drizzle/20260914125842_onboarding_reward_reserved/migration.sql diff --git a/packages/db/drizzle/20260914125842_onboarding_reward_reserved/snapshot.json b/packages/db/drizzle/20260914125842_onboarding_reward_reserved/snapshot.json new file mode 100644 index 000000000..a6faa5db0 --- /dev/null +++ b/packages/db/drizzle/20260914125842_onboarding_reward_reserved/snapshot.json @@ -0,0 +1,15709 @@ +{ + "id": "4f35f45c-70a6-4c5d-8742-5e0339870156", + "prevIds": [ + "0cec39f6-3042-46cc-9892-15c0badcb195" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_destinations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "schema": "public", + "table": "alert_destinations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "group_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"alert_incidents\".\"status\" = 'open'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_open_group_idx", + "schema": "public", + "table": "alert_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rule_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "schema": "public", + "table": "alert_rule_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "schema": "public", + "table": "alert_rule_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "alert_rules", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "schema": "public", + "table": "alert_rules", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "schema": "public", + "table": "anomaly_detector_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_status_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"anomaly_incidents\".\"status\" = 'open'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_open_detector_idx", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "schema": "public", + "table": "api_keys", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "schema": "public", + "table": "api_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "account_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "account_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_account_dataset_zone_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_expires_at", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_activity_start_token", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "mobile_devices", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "schema": "public", + "table": "mobile_devices", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "dashboard_shares", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "schema": "public", + "table": "dashboard_shares", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "schema": "public", + "table": "dashboard_shares", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboard_versions", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "schema": "public", + "table": "dashboard_versions", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "schema": "public", + "table": "dashboard_versions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "schema": "public", + "table": "dashboards", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "schema": "public", + "table": "dashboards", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "schema": "public", + "table": "dashboards", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opted_out_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "namespaces_json", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "environments_json", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "actors", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "schema": "public", + "table": "actors", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "schema": "public", + "table": "actors", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "schema": "public", + "table": "error_fingerprint_candidates", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_incidents", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_status_idx", + "schema": "public", + "table": "error_incidents", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "schema": "public", + "table": "error_issue_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_pull_requests", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_pull_requests_pkey", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repo_full_name", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merge_commit_sha", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "link_source", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linked_by_actor_id", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_pr_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_repo_number_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_idx", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_states", + "entityType": "columns" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "schema": "public", + "table": "error_issue_states", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "error_issue_verifications", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_verifications_pkey", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pull_request_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'waiting'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verify_after", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "baseline_versions_json", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_rate_per_hour", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict_note", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "post_merge_occurrence_count", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "verify_after", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_due_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_issue_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_open_idx", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_live_seen_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"error_issues\".\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "schema": "public", + "table": "error_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "error_notification_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "error_tick_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "schema": "public", + "table": "error_tick_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "schema": "public", + "table": "issue_escalations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "schema": "public", + "table": "issue_escalations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "investigations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"investigations\".\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "schema": "public", + "table": "investigations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "live_activities", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "live_activities_pkey", + "schema": "public", + "table": "live_activities", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activity_id", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "push_token", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_reason", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "live_activities", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "device_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_device_incident_unique", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_incident_idx", + "schema": "public", + "table": "live_activities", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "granted_accounts_json", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "oauth_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "schema": "public", + "table": "oauth_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reward_claimed_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reward_reserved_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "pks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "schema": "public", + "table": "org_ingest_keys", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "columns" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "schema": "public", + "table": "org_clickhouse_settings", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "schema": "public", + "entityType": "tables" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "columns" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs", + "entityType": "pks" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_connections", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "schema": "public", + "table": "planetscale_connections", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_databases", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "schema": "public", + "table": "planetscale_databases", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_events", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "schema": "public", + "table": "planetscale_events", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "name": "scrape_target_checks_id_seq", + "type": "byDefault", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "increment": "1", + "cache": 1, + "cycle": false + }, + "name": "id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "indexes" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "fks" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "scrape_targets", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "schema": "public", + "table": "scrape_targets", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "schema": "public", + "table": "slack_workspaces", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "schema": "public", + "table": "slack_workspaces", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_commits", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "schema": "public", + "table": "vcs_commits", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_installations", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "schema": "public", + "table": "vcs_installations", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repositories", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "schema": "public", + "table": "vcs_repositories", + "entityType": "indexes" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "schema": "public", + "entityType": "tables" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "columns" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "indexes" + } + ], + "renames": [] +} \ No newline at end of file diff --git a/packages/db/drizzle/0057_alert_incident_hold.sql b/packages/db/drizzle/20260914175611_alert_incident_hold/migration.sql similarity index 100% rename from packages/db/drizzle/0057_alert_incident_hold.sql rename to packages/db/drizzle/20260914175611_alert_incident_hold/migration.sql diff --git a/packages/db/drizzle/20260914175611_alert_incident_hold/snapshot.json b/packages/db/drizzle/20260914175611_alert_incident_hold/snapshot.json new file mode 100644 index 000000000..ae8d82753 --- /dev/null +++ b/packages/db/drizzle/20260914175611_alert_incident_hold/snapshot.json @@ -0,0 +1,15735 @@ +{ + "id": "5d7f9e42-079f-4b13-91d4-a0b63c019bdd", + "prevIds": [ + "4f35f45c-70a6-4c5d-8742-5e0339870156" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "actors", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_pull_requests", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_verifications", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "investigation_lens_runs", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "live_activities", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "entityType": "tables", + "schema": "public" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hold_reason", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "held_since", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "account_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_expires_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_activity_start_token", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opted_out_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "namespaces_json", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "environments_json", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repo_full_name", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merge_commit_sha", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "link_source", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linked_by_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pull_request_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'waiting'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verify_after", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "baseline_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_rate_per_hour", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict_note", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "post_merge_occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_id", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ordinal", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "verdict", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_note", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "tool_count", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "elapsed_ms", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_name", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lens_question", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "priority", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "deadline_hit", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hypothesis_json", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "evidence_json", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mechanism", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "self_doubt", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suggested_actions_json", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reported_at", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ranked_at", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "fanout_state", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fanout_size", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan_json", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_model", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "planner_elapsed_ms", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_note", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "validator_elapsed_ms", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fanout_deadline_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "fanout_attempt", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activity_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "push_token", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_at", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_reason", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "granted_accounts_json", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reward_claimed_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reward_reserved_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "type": "byDefault", + "name": "scrape_target_checks_id_seq", + "increment": "1", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "cache": 1, + "cycle": false + }, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_destinations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_destinations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_destinations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "group_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'open'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_open_group_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rule_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rules" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rules" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rules" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"open_incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_status_triggered_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'open'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_open_detector_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "api_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "api_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "account_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_account_dataset_zone_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "entityType": "indexes", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "entityType": "indexes", + "schema": "public", + "table": "mobile_devices" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "mobile_devices" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "entityType": "indexes", + "schema": "public", + "table": "mobile_devices" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_versions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_versions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboards" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboards" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "entityType": "indexes", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "entityType": "indexes", + "schema": "public", + "table": "actors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "actors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "actors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_pr_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_repo_number_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "verify_after", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" in ('waiting', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_open_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"archived_at\" is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_live_seen_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_tick_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "entityType": "indexes", + "schema": "public", + "table": "issue_escalations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "issue_escalations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "issue_escalations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "lens_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_lens_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "investigation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigation_lens_runs_org_inv_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "device_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_device_incident_unique", + "entityType": "indexes", + "schema": "public", + "table": "live_activities" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "live_activities" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "entityType": "indexes", + "schema": "public", + "table": "oauth_connections" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "oauth_connections" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "entityType": "indexes", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_connections" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_databases" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_databases" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "entityType": "indexes", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "scrape_targets" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "scrape_targets" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "slack_workspaces" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "slack_workspaces" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "slack_workspaces" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_commits" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_commits" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_installations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_installations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repositories" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repositories" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repositories" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "entityType": "fks", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": false, + "columns": [ + "investigation_id" + ], + "schemaTo": "public", + "tableTo": "investigations", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "investigation_lens_runs_investigation_id_investigations_id_fk", + "entityType": "fks", + "schema": "public", + "table": "investigation_lens_runs" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "entityType": "fks", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "entityType": "pks", + "schema": "public", + "table": "alert_rule_states" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "entityType": "pks", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "entityType": "pks", + "schema": "public", + "table": "dashboard_shares" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "entityType": "pks", + "schema": "public", + "table": "dashboard_versions" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "entityType": "pks", + "schema": "public", + "table": "dashboards" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "entityType": "pks", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "entityType": "pks", + "schema": "public", + "table": "error_issue_states" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "entityType": "pks", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "entityType": "pks", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "entityType": "pks", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_pull_requests_pkey", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_verifications_pkey", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigation_lens_runs_pkey", + "schema": "public", + "table": "investigation_lens_runs", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "live_activities_pkey", + "schema": "public", + "table": "live_activities", + "entityType": "pks" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + } + ], + "renames": [] +} diff --git a/packages/db/drizzle/0058_drop_investigation_lanes.sql b/packages/db/drizzle/20260914223755_drop_investigation_lanes/migration.sql similarity index 100% rename from packages/db/drizzle/0058_drop_investigation_lanes.sql rename to packages/db/drizzle/20260914223755_drop_investigation_lanes/migration.sql diff --git a/packages/db/drizzle/20260914223755_drop_investigation_lanes/snapshot.json b/packages/db/drizzle/20260914223755_drop_investigation_lanes/snapshot.json new file mode 100644 index 000000000..15bdb1133 --- /dev/null +++ b/packages/db/drizzle/20260914223755_drop_investigation_lanes/snapshot.json @@ -0,0 +1,15093 @@ +{ + "id": "05023a0b-d80d-4e35-a2ba-f042bb12470b", + "prevIds": [ + "5d7f9e42-079f-4b13-91d4-a0b63c019bdd" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "actors", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_pull_requests", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_verifications", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "live_activities", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "entityType": "tables", + "schema": "public" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hold_reason", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "held_since", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "account_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_expires_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_activity_start_token", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opted_out_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "namespaces_json", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "environments_json", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repo_full_name", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merge_commit_sha", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "link_source", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linked_by_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pull_request_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'waiting'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verify_after", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "baseline_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_rate_per_hour", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict_note", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "post_merge_occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activity_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "push_token", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_at", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_reason", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "granted_accounts_json", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reward_claimed_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reward_reserved_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "type": "byDefault", + "name": "scrape_target_checks_id_seq", + "increment": "1", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "cache": 1, + "cycle": false + }, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_destinations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_destinations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_destinations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "group_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'open'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_open_group_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rule_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rules" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rules" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rules" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"open_incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_status_triggered_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'open'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_open_detector_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "api_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "api_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "account_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_account_dataset_zone_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "entityType": "indexes", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "entityType": "indexes", + "schema": "public", + "table": "mobile_devices" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "mobile_devices" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "entityType": "indexes", + "schema": "public", + "table": "mobile_devices" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_versions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_versions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboards" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboards" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "entityType": "indexes", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "entityType": "indexes", + "schema": "public", + "table": "actors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "actors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "actors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_pr_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_repo_number_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "verify_after", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" in ('waiting', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_open_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"archived_at\" is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_live_seen_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_tick_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "entityType": "indexes", + "schema": "public", + "table": "issue_escalations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "issue_escalations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "issue_escalations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "device_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_device_incident_unique", + "entityType": "indexes", + "schema": "public", + "table": "live_activities" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "live_activities" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "entityType": "indexes", + "schema": "public", + "table": "oauth_connections" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "oauth_connections" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "entityType": "indexes", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_connections" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_databases" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_databases" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "entityType": "indexes", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "scrape_targets" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "scrape_targets" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "slack_workspaces" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "slack_workspaces" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "slack_workspaces" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_commits" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_commits" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_installations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_installations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repositories" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repositories" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repositories" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "entityType": "fks", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "entityType": "fks", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "entityType": "pks", + "schema": "public", + "table": "alert_rule_states" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "entityType": "pks", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "entityType": "pks", + "schema": "public", + "table": "dashboard_shares" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "entityType": "pks", + "schema": "public", + "table": "dashboard_versions" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "entityType": "pks", + "schema": "public", + "table": "dashboards" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "entityType": "pks", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "entityType": "pks", + "schema": "public", + "table": "error_issue_states" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "entityType": "pks", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "entityType": "pks", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "entityType": "pks", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_pull_requests_pkey", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_verifications_pkey", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "live_activities_pkey", + "schema": "public", + "table": "live_activities", + "entityType": "pks" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + } + ], + "renames": [] +} diff --git a/packages/db/drizzle/0059_planetscale_issue_receipts.sql b/packages/db/drizzle/20260917223420_planetscale_issue_receipts/migration.sql similarity index 100% rename from packages/db/drizzle/0059_planetscale_issue_receipts.sql rename to packages/db/drizzle/20260917223420_planetscale_issue_receipts/migration.sql diff --git a/packages/db/drizzle/20260917223420_planetscale_issue_receipts/snapshot.json b/packages/db/drizzle/20260917223420_planetscale_issue_receipts/snapshot.json new file mode 100644 index 000000000..942d6f7e8 --- /dev/null +++ b/packages/db/drizzle/20260917223420_planetscale_issue_receipts/snapshot.json @@ -0,0 +1,15170 @@ +{ + "id": "24e1da2d-418a-4012-a13f-d0a60b042c23", + "prevIds": [ + "05023a0b-d80d-4e35-a2ba-f042bb12470b" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "actors", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_pull_requests", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_verifications", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "live_activities", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_issue_receipts", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "entityType": "tables", + "schema": "public" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hold_reason", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "held_since", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "account_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_expires_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_activity_start_token", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opted_out_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "namespaces_json", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "environments_json", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repo_full_name", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merge_commit_sha", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "link_source", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linked_by_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pull_request_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'waiting'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verify_after", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "baseline_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_rate_per_hour", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict_note", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "post_merge_occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activity_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "push_token", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_at", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_reason", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "granted_accounts_json", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reward_claimed_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reward_reserved_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_issue_receipts" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_issue_receipts" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_issue_receipts" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "type": "byDefault", + "name": "scrape_target_checks_id_seq", + "increment": "1", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "cache": 1, + "cycle": false + }, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_destinations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_destinations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_destinations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "group_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'open'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_open_group_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rule_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rules" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rules" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rules" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"open_incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_status_triggered_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'open'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_open_detector_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "api_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "api_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "account_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_account_dataset_zone_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "entityType": "indexes", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "entityType": "indexes", + "schema": "public", + "table": "mobile_devices" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "mobile_devices" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "entityType": "indexes", + "schema": "public", + "table": "mobile_devices" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_versions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_versions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboards" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboards" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "entityType": "indexes", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "entityType": "indexes", + "schema": "public", + "table": "actors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "actors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "actors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_pr_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_repo_number_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "verify_after", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" in ('waiting', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_open_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"archived_at\" is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_live_seen_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_tick_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "entityType": "indexes", + "schema": "public", + "table": "issue_escalations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "issue_escalations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "issue_escalations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "device_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_device_incident_unique", + "entityType": "indexes", + "schema": "public", + "table": "live_activities" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "live_activities" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "entityType": "indexes", + "schema": "public", + "table": "oauth_connections" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "oauth_connections" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "entityType": "indexes", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_connections" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_databases" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_databases" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "processed_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_issue_receipts_processed_at_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_issue_receipts" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "entityType": "indexes", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "scrape_targets" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "scrape_targets" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "slack_workspaces" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "slack_workspaces" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "slack_workspaces" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_commits" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_commits" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_installations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_installations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repositories" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repositories" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repositories" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "entityType": "fks", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "entityType": "fks", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "entityType": "pks", + "schema": "public", + "table": "alert_rule_states" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "entityType": "pks", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "entityType": "pks", + "schema": "public", + "table": "dashboard_shares" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "entityType": "pks", + "schema": "public", + "table": "dashboard_versions" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "entityType": "pks", + "schema": "public", + "table": "dashboards" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "entityType": "pks", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "entityType": "pks", + "schema": "public", + "table": "error_issue_states" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "entityType": "pks", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "entityType": "pks", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "entityType": "pks", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "columns": [ + "org_id", + "event_id" + ], + "nameExplicit": false, + "name": "planetscale_issue_receipts_org_id_event_id_pk", + "entityType": "pks", + "schema": "public", + "table": "planetscale_issue_receipts" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_pull_requests_pkey", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_verifications_pkey", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "live_activities_pkey", + "schema": "public", + "table": "live_activities", + "entityType": "pks" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + } + ], + "renames": [] +} diff --git a/packages/db/drizzle/0060_investigation_progress.sql b/packages/db/drizzle/20260918230801_investigation_progress/migration.sql similarity index 100% rename from packages/db/drizzle/0060_investigation_progress.sql rename to packages/db/drizzle/20260918230801_investigation_progress/migration.sql diff --git a/packages/db/drizzle/20260918230801_investigation_progress/snapshot.json b/packages/db/drizzle/20260918230801_investigation_progress/snapshot.json new file mode 100644 index 000000000..ba81bfd1b --- /dev/null +++ b/packages/db/drizzle/20260918230801_investigation_progress/snapshot.json @@ -0,0 +1,15183 @@ +{ + "id": "04f3891a-2e9e-42af-91bf-3cedd2117d2a", + "prevIds": [ + "24e1da2d-418a-4012-a13f-d0a60b042c23" + ], + "version": "8", + "dialect": "postgres", + "ddl": [ + { + "isRlsEnabled": false, + "name": "ai_triage_settings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_delivery_events", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_destinations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_incidents", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_claims", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_rule_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "alert_rules", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_settings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "anomaly_detector_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "anomaly_incidents", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "api_keys", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_analytics_state", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_hyperdrive_configs", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cloudflare_logpush_connectors", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "cli_device_authorizations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_authorizations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_clients", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mcp_oauth_refresh_tokens", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "mobile_devices", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "dashboard_shares", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "dashboard_versions", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "dashboards", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "digest_subscriptions", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "actors", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_fingerprint_candidates", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_incidents", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_events", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_pull_requests", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issue_verifications", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_issues", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_notification_deliveries", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_notification_policies", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "error_tick_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "issue_escalation_policies", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "issue_escalations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "investigations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "live_activities", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "oauth_auth_states", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "oauth_connections", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_onboarding_state", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_attribute_mappings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_recommendation_issues", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_keys", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_ingest_sampling_policies", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_settings", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "org_clickhouse_schema_apply_runs", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_connections", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_databases", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_events", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_issue_receipts", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "planetscale_poll_state", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "scrape_target_checks", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "scrape_targets", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "slack_workspaces", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_commits", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_installations", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_repositories", + "entityType": "tables", + "schema": "public" + }, + { + "isRlsEnabled": false, + "name": "vcs_repository_branches", + "entityType": "tables", + "schema": "public" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "20", + "generated": null, + "identity": null, + "name": "max_runs_per_day", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "90", + "generated": null, + "identity": null, + "name": "max_passes_per_day", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "ai_triage_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempt_number", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_message", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider_reference", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "response_code", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_json", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tested_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_test_error", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_failures", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_failure_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "alert_destinations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_key", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_name", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_key", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_delivered_event_type", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_notified_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "hold_reason", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "held_since", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "rule_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'__total__'", + "generated": null, + "identity": null, + "name": "group_key", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rule_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notification_template_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_names_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exclude_service_names_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environments_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tags_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "comparator", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_upper", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "window_minutes", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "minimum_sample_count", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_breaches_required", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "2", + "generated": null, + "identity": null, + "name": "consecutive_healthy_required", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "30", + "generated": null, + "identity": null, + "name": "renotify_interval_minutes", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "apdex_threshold_ms", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_builder_draft_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "raw_query_sql", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "group_by", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_ids_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "query_spec_json", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reducer", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sample_count_strategy", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "no_data_behavior", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "alert_rules" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'normal'", + "generated": null, + "identity": null, + "name": "sensitivity", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "muted_signals_json", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_tick_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_breaches", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "consecutive_healthy", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_status", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_incident_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detector_key", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "signal_type", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "deployment_env", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_issue_id", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opened_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_median", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "baseline_sigma", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "threshold_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_value", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "last_sample_count", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolve_reason", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "triage_status", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "fingerprints_json", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "reopen_count", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_reopened_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "description", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_hash", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "key_prefix", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "revoked", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_used_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "metadata_json", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'standard'", + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by_email", + "entityType": "columns", + "schema": "public", + "table": "api_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "account_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "zone_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "backfill_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_json", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "settings_fetched_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "quantiles_available", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovered_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_scripts_json", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "config_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_host", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_port", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_scheme", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_database", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "origin_user", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "zone_name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'http_requests'", + "generated": null, + "identity": null, + "name": "dataset", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_iv", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_tag", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_hash", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_received_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "secret_rotated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_code_hash", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_code_hash", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "request_id_hash", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_challenge", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authorization_code_hash", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_org_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_roles", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_user_email", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "approved_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "denied_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "used_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_name", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uris", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_uri", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_clients" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "client_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resource", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scopes", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "roles", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_email", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_key_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "replaced_by_id", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "family_expires_at", + "entityType": "columns", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "platform", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "environment", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bundle_id", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "app_version", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "live_activity_start_token", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_name", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "preferences", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "disabled_reason", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_pushed_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "mobile_devices" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "widget_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "mode", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_hash", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_iv", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_tag", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "token_suffix", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_shares" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dashboard_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "version_number", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_kind", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "change_summary", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_version_id", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "dashboard_versions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "version", + "entityType": "columns", + "schema": "public", + "table": "dashboards" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "opted_out_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "day_of_week", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'UTC'", + "generated": null, + "identity": null, + "name": "timezone", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "namespaces_json", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "environments_json", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sent_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_attempted_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "agent_name", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "capabilities_json", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_active_at", + "entityType": "columns", + "schema": "public", + "table": "actors" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "service_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_triggered_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_incidents" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "type", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "from_state", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "to_state", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repo_full_name", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merge_commit_sha", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "link_source", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "linked_by_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_observed_occurrence_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_evaluated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "open_incident_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "pull_request_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'waiting'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "merged_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verify_after", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "baseline_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "baseline_rate_per_hour", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "verdict_note", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "post_merge_occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'error'", + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_ref_json", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "fingerprint_hash", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "fingerprint_version", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_type", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "exception_message", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "error_label", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "top_frame", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'triage'", + "generated": null, + "identity": null, + "name": "workflow_state", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "3", + "generated": null, + "identity": null, + "name": "priority", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity_source", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "assigned_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_holder_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_expires_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "notes", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_seen_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_by_actor_id", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_resolved_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_regressed_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "regression_count", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "seen_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "resolved_versions_json", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snooze_until", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "archived_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "destination_id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "delivery_key", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempt_count", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scheduled_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claimed_by", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "attempted_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "destination_ids_json", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_first_seen", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "notify_on_regression", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_resolve", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_in_review", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_transition_done", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "notify_on_claim", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "min_occurrence_count", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'warning'", + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "error_notification_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_through", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "bootstrap_completed", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_token", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "claim_expires_at", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "error_tick_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "rules_json", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "issue_escalation_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reason", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "run_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "investigation_id", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'{}'", + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'[]'", + "generated": null, + "identity": null, + "name": "delivery_results_json", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'queued'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "attempts", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dedupe_key", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "entityType": "columns", + "schema": "public", + "table": "issue_escalations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'investigating'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'user'", + "generated": null, + "identity": null, + "name": "seeded_by", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "subject_json", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "snapshot_json", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_kind", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "issue_id", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "report_json", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "progress_json", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "severity", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "confidence", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "model", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "input_tokens", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "output_tokens", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "autonomous_turns", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "diagnosed_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "investigations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "device_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "incident_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activity_id", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "push_token", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_at", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ended_reason", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "live_activities" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "initiated_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "redirect_uri", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "return_to", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "code_verifier", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_user_email", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_name", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "granted_accounts_json", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_iv", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "access_token_tag", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_iv", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "refresh_token_tag", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "expires_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "oauth_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "user_id", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "email", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "role", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "demo_data_requested", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "onboarding_completed_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checklist_dismissed_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "first_data_received_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "welcome_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connect_nudge_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "stalled_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "activation_email_sent_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reward_claimed_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "reward_reserved_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_onboarding_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_context", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_key", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "operation", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "number", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "recommendation_key", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source_key", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "canonical_key", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'open'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "0", + "generated": null, + "identity": null, + "name": "usage_count", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "opened_at", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "resolved_at", + "entityType": "columns", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_key_hash", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_iv", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_tag", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_key_hash", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "public_rotated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "private_rotated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "double precision", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "1", + "generated": null, + "identity": null, + "name": "trace_sample_ratio", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "always_keep_error_spans", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "always_keep_slow_spans_ms", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "now()", + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_ingest_sampling_policies" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_url", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_user", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_iv", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_password_tag", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ch_database", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sync_status", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "schema_version", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_by", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_by", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "workflow_instance_id", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "phase", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "current_migration", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_total", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "steps_done", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "applied_versions", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "skipped", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error_message", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "started_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "finished_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "ps_organization", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "connected_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scrape_target_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_iv", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "webhook_secret_tag", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "detected_permissions_json", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_inventory_error", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_connections" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'mysql'", + "generated": null, + "identity": null, + "name": "kind", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "region", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "plan", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "branches_json", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "deleted_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_databases" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "database_name", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "branch_name", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "category", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_type", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "state", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "external_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "title", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "source", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "actor_login", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "payload_json", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "occurred_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_events" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_issue_receipts" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "event_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_issue_receipts" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "processed_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_issue_receipts" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "dataset", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "database_id", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "watermark_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_success_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_error_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "lease_until", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": { + "type": "byDefault", + "name": "scrape_target_checks_id_seq", + "increment": "1", + "startWith": "1", + "minValue": "1", + "maxValue": "2147483647", + "cache": 1, + "cycle": false + }, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "target_id", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "''", + "generated": null, + "identity": null, + "name": "sub_target_key", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "checked_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "error", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "duration_ms", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_scraped", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "samples_post_relabel", + "entityType": "columns", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "service_name", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "url", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'prometheus'", + "generated": null, + "identity": null, + "name": "target_type", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "discovery_config_json", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "integer", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "15", + "generated": null, + "identity": null, + "name": "scrape_interval_seconds", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "jsonb", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "labels_json", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'none'", + "generated": null, + "identity": null, + "name": "auth_type", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "managed_by", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_iv", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "auth_credentials_tag", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "enabled", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_scrape_error", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "scrape_targets" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "team_name", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_user_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "scope", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_iv", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "bot_token_tag", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_ciphertext", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_iv", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "api_key_secret_tag", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_at", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "revoked_reason", + "entityType": "columns", + "schema": "public", + "table": "slack_workspaces" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "sha", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "message", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_name", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_email", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_login", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "author_avatar_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "authored_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "committed_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_commits" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_installation_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_login", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_type", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_account_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "account_avatar_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'all'", + "generated": null, + "identity": null, + "name": "repository_selection", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "suspended_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installed_by_user_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_installations" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "installation_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "external_repo_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "owner", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "full_name", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'main'", + "generated": null, + "identity": null, + "name": "default_branch", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "tracked_branch", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "html_url", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "true", + "generated": null, + "identity": null, + "name": "is_private", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_archived", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'active'", + "generated": null, + "identity": null, + "name": "status", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "'pending'", + "generated": null, + "identity": null, + "name": "sync_status", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_synced_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "last_sync_error", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repositories" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "org_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "provider", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "repository_id", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "name", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "boolean", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": "false", + "generated": null, + "identity": null, + "name": "is_default", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "text", + "typeSchema": null, + "notNull": false, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "head_sha", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "created_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "type": "timestamp with time zone", + "typeSchema": null, + "notNull": true, + "dimensions": 0, + "default": null, + "generated": null, + "identity": null, + "name": "updated_at", + "entityType": "columns", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_org_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_claim_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "attempt_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_delivery_events_delivery_attempt_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_delivery_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_destinations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_destinations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_destinations_org_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_destinations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "alert_incidents_org_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_rule_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "incident_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_incident_key_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "rule_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "group_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'open'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_incidents_open_group_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_claims_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rule_claims" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rule_states_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rule_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rules" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rules" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "alert_rules_org_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "alert_rules" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "open_incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"open_incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_open_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "last_evaluated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_detector_states_evaluated_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_status_triggered_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_triggered_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_detector_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "error_issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "detector_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" = 'open'", + "with": "", + "method": "btree", + "concurrently": false, + "name": "anomaly_incidents_open_detector_idx", + "entityType": "indexes", + "schema": "public", + "table": "anomaly_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_key_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "api_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "api_keys_org_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "api_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "account_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "zone_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_account_dataset_zone_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cf_analytics_state_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_analytics_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "config_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_config_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_hyperdrive_configs_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_hyperdrive_configs" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "secret_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cloudflare_logpush_connectors_secret_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "cloudflare_logpush_connectors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_user_code_unique", + "entityType": "indexes", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "cli_device_authorizations_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "cli_device_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "authorization_code_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_code_unique", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_authorizations_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_authorizations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "family_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_family_idx", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mcp_oauth_refresh_tokens_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "mcp_oauth_refresh_tokens" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "platform", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "token", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_platform_token_unique", + "entityType": "indexes", + "schema": "public", + "table": "mobile_devices" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "mobile_devices" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "user_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "mobile_devices_user_idx", + "entityType": "indexes", + "schema": "public", + "table": "mobile_devices" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "token_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_token_hash_unq", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "coalesce(widget_id, '')", + "isExpression": true, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "revoked_at is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_live_unq", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_org_dashboard_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_shares_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_versions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dashboard_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "version_number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboard_versions_org_dashboard_version_unq", + "entityType": "indexes", + "schema": "public", + "table": "dashboard_versions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "updated_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_updated_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboards" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "dashboards_org_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "dashboards" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "digest_subscriptions_org_user_idx", + "entityType": "indexes", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "digest_subscriptions_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "digest_subscriptions" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "actors_org_user_idx", + "entityType": "indexes", + "schema": "public", + "table": "actors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "agent_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_agent_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "actors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "actors_org_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "actors" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_fingerprint_candidates_last_seen_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_triggered_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_incidents_org_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_incidents" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_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": "error_issue_events_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "actor_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": "error_issue_events_actor_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "type", + "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": "error_issue_events_type_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_pr_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "repo_full_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "number", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_repo_number_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_pull_requests_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_pull_requests" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "verify_after", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"status\" in ('waiting', 'running')", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issue_verifications_open_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issue_verifications" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "workflow_state", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_workflow_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "severity", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_severity_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "last_seen_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"archived_at\" is null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_live_seen_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "fingerprint_version", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_fp_version_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "assigned_actor_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_assignee_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "lease_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_lease_expiry_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "archived_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": "\"archived_at\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_issues_org_archived_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "scheduled_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "delivery_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "destination_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_notification_deliveries_key_destination_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_notification_deliveries" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "claim_expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "error_tick_states_claim_idx", + "entityType": "indexes", + "schema": "public", + "table": "error_tick_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "dedupe_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_dedupe_idx", + "entityType": "indexes", + "schema": "public", + "table": "issue_escalations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "status", + "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": "issue_escalations_due_idx", + "entityType": "indexes", + "schema": "public", + "table": "issue_escalations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "issue_escalations_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "issue_escalations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_kind", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"incident_id\" is not null", + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_created_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "issue_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "investigations_org_issue_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_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": "investigations_org_status_idx", + "entityType": "indexes", + "schema": "public", + "table": "investigations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "device_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_device_incident_unique", + "entityType": "indexes", + "schema": "public", + "table": "live_activities" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "incident_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "live_activities_incident_idx", + "entityType": "indexes", + "schema": "public", + "table": "live_activities" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "expires_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_auth_states_expires_idx", + "entityType": "indexes", + "schema": "public", + "table": "oauth_auth_states" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_provider_idx", + "entityType": "indexes", + "schema": "public", + "table": "oauth_connections" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "oauth_connections_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "oauth_connections" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_attribute_mappings_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_attribute_mappings" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "recommendation_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_recommendation_issues_org_key_idx", + "entityType": "indexes", + "schema": "public", + "table": "org_recommendation_issues" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_unique", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "public_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_public_key_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "private_key_hash", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "org_ingest_keys_private_key_hash_unique", + "entityType": "indexes", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_connections_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_connections" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_db_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_databases" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_databases_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_databases" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "event_type", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_dedupe_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_db_time_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "occurred_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_events_org_time_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_events" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "processed_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_issue_receipts_processed_at_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_issue_receipts" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "dataset", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "database_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_dataset_db_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "planetscale_poll_state_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "planetscale_poll_state" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "target_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "checked_at", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_target_checks_target_checked_idx", + "entityType": "indexes", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "scrape_targets" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "enabled", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "scrape_targets_org_enabled_idx", + "entityType": "indexes", + "schema": "public", + "table": "scrape_targets" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "team_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_team_id_idx", + "entityType": "indexes", + "schema": "public", + "table": "slack_workspaces" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "slack_workspaces" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": "\"revoked_at\" IS NULL", + "with": "", + "method": "btree", + "concurrently": false, + "name": "slack_workspaces_active_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "slack_workspaces" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_repo_sha_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_commits" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "sha", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_commits_org_sha_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_commits" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_provider_external_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_installations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_installations_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_installations" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "provider", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "external_repo_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_repo_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repositories" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repositories" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "installation_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repositories_installation_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repositories" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "repository_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + }, + { + "value": "name", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": true, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_repo_name_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "nameExplicit": true, + "columns": [ + { + "value": "org_id", + "isExpression": false, + "asc": true, + "nullsFirst": false, + "opclass": null + } + ], + "isUnique": false, + "where": null, + "with": "", + "method": "btree", + "concurrently": false, + "name": "vcs_repository_branches_org_idx", + "entityType": "indexes", + "schema": "public", + "table": "vcs_repository_branches" + }, + { + "nameExplicit": true, + "columns": [ + "org_id", + "dashboard_id" + ], + "schemaTo": "public", + "tableTo": "dashboards", + "columnsTo": [ + "org_id", + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "dashboard_shares_dashboard_fk", + "entityType": "fks", + "schema": "public", + "table": "dashboard_shares" + }, + { + "nameExplicit": false, + "columns": [ + "target_id" + ], + "schemaTo": "public", + "tableTo": "scrape_targets", + "columnsTo": [ + "id" + ], + "onUpdate": "NO ACTION", + "onDelete": "CASCADE", + "name": "scrape_target_checks_target_id_scrape_targets_id_fk", + "entityType": "fks", + "schema": "public", + "table": "scrape_target_checks" + }, + { + "columns": [ + "org_id", + "rule_id", + "group_key" + ], + "nameExplicit": false, + "name": "alert_rule_states_org_id_rule_id_group_key_pk", + "entityType": "pks", + "schema": "public", + "table": "alert_rule_states" + }, + { + "columns": [ + "org_id", + "detector_key" + ], + "nameExplicit": false, + "name": "anomaly_detector_states_org_id_detector_key_pk", + "entityType": "pks", + "schema": "public", + "table": "anomaly_detector_states" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_shares_org_id_id_pk", + "entityType": "pks", + "schema": "public", + "table": "dashboard_shares" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboard_versions_org_id_id_pk", + "entityType": "pks", + "schema": "public", + "table": "dashboard_versions" + }, + { + "columns": [ + "org_id", + "id" + ], + "nameExplicit": false, + "name": "dashboards_org_id_id_pk", + "entityType": "pks", + "schema": "public", + "table": "dashboards" + }, + { + "columns": [ + "org_id", + "fingerprint_hash" + ], + "nameExplicit": false, + "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", + "entityType": "pks", + "schema": "public", + "table": "error_fingerprint_candidates" + }, + { + "columns": [ + "org_id", + "issue_id" + ], + "nameExplicit": false, + "name": "error_issue_states_org_id_issue_id_pk", + "entityType": "pks", + "schema": "public", + "table": "error_issue_states" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_keys_org_id_pk", + "entityType": "pks", + "schema": "public", + "table": "org_ingest_keys" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_settings_org_id_pk", + "entityType": "pks", + "schema": "public", + "table": "org_clickhouse_settings" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_clickhouse_schema_apply_runs_org_id_pk", + "entityType": "pks", + "schema": "public", + "table": "org_clickhouse_schema_apply_runs" + }, + { + "columns": [ + "org_id", + "event_id" + ], + "nameExplicit": false, + "name": "planetscale_issue_receipts_org_id_event_id_pk", + "entityType": "pks", + "schema": "public", + "table": "planetscale_issue_receipts" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "ai_triage_settings_pkey", + "schema": "public", + "table": "ai_triage_settings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_delivery_events_pkey", + "schema": "public", + "table": "alert_delivery_events", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_destinations_pkey", + "schema": "public", + "table": "alert_destinations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_incidents_pkey", + "schema": "public", + "table": "alert_incidents", + "entityType": "pks" + }, + { + "columns": [ + "rule_id" + ], + "nameExplicit": false, + "name": "alert_rule_claims_pkey", + "schema": "public", + "table": "alert_rule_claims", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "alert_rules_pkey", + "schema": "public", + "table": "alert_rules", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "anomaly_detector_settings_pkey", + "schema": "public", + "table": "anomaly_detector_settings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "anomaly_incidents_pkey", + "schema": "public", + "table": "anomaly_incidents", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "api_keys_pkey", + "schema": "public", + "table": "api_keys", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_analytics_state_pkey", + "schema": "public", + "table": "cloudflare_analytics_state", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_hyperdrive_configs_pkey", + "schema": "public", + "table": "cloudflare_hyperdrive_configs", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "cloudflare_logpush_connectors_pkey", + "schema": "public", + "table": "cloudflare_logpush_connectors", + "entityType": "pks" + }, + { + "columns": [ + "device_code_hash" + ], + "nameExplicit": false, + "name": "cli_device_authorizations_pkey", + "schema": "public", + "table": "cli_device_authorizations", + "entityType": "pks" + }, + { + "columns": [ + "request_id_hash" + ], + "nameExplicit": false, + "name": "mcp_oauth_authorizations_pkey", + "schema": "public", + "table": "mcp_oauth_authorizations", + "entityType": "pks" + }, + { + "columns": [ + "client_id" + ], + "nameExplicit": false, + "name": "mcp_oauth_clients_pkey", + "schema": "public", + "table": "mcp_oauth_clients", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mcp_oauth_refresh_tokens_pkey", + "schema": "public", + "table": "mcp_oauth_refresh_tokens", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "mobile_devices_pkey", + "schema": "public", + "table": "mobile_devices", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "digest_subscriptions_pkey", + "schema": "public", + "table": "digest_subscriptions", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "actors_pkey", + "schema": "public", + "table": "actors", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_incidents_pkey", + "schema": "public", + "table": "error_incidents", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_events_pkey", + "schema": "public", + "table": "error_issue_events", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_pull_requests_pkey", + "schema": "public", + "table": "error_issue_pull_requests", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issue_verifications_pkey", + "schema": "public", + "table": "error_issue_verifications", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_issues_pkey", + "schema": "public", + "table": "error_issues", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "error_notification_deliveries_pkey", + "schema": "public", + "table": "error_notification_deliveries", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_notification_policies_pkey", + "schema": "public", + "table": "error_notification_policies", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "error_tick_states_pkey", + "schema": "public", + "table": "error_tick_states", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "issue_escalation_policies_pkey", + "schema": "public", + "table": "issue_escalation_policies", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "issue_escalations_pkey", + "schema": "public", + "table": "issue_escalations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "investigations_pkey", + "schema": "public", + "table": "investigations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "live_activities_pkey", + "schema": "public", + "table": "live_activities", + "entityType": "pks" + }, + { + "columns": [ + "state" + ], + "nameExplicit": false, + "name": "oauth_auth_states_pkey", + "schema": "public", + "table": "oauth_auth_states", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "oauth_connections_pkey", + "schema": "public", + "table": "oauth_connections", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_onboarding_state_pkey", + "schema": "public", + "table": "org_onboarding_state", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_ingest_attribute_mappings_pkey", + "schema": "public", + "table": "org_ingest_attribute_mappings", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "org_recommendation_issues_pkey", + "schema": "public", + "table": "org_recommendation_issues", + "entityType": "pks" + }, + { + "columns": [ + "org_id" + ], + "nameExplicit": false, + "name": "org_ingest_sampling_policies_pkey", + "schema": "public", + "table": "org_ingest_sampling_policies", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_connections_pkey", + "schema": "public", + "table": "planetscale_connections", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_databases_pkey", + "schema": "public", + "table": "planetscale_databases", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_events_pkey", + "schema": "public", + "table": "planetscale_events", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "planetscale_poll_state_pkey", + "schema": "public", + "table": "planetscale_poll_state", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_target_checks_pkey", + "schema": "public", + "table": "scrape_target_checks", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "scrape_targets_pkey", + "schema": "public", + "table": "scrape_targets", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "slack_workspaces_pkey", + "schema": "public", + "table": "slack_workspaces", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_commits_pkey", + "schema": "public", + "table": "vcs_commits", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_installations_pkey", + "schema": "public", + "table": "vcs_installations", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repositories_pkey", + "schema": "public", + "table": "vcs_repositories", + "entityType": "pks" + }, + { + "columns": [ + "id" + ], + "nameExplicit": false, + "name": "vcs_repository_branches_pkey", + "schema": "public", + "table": "vcs_repository_branches", + "entityType": "pks" + } + ], + "renames": [] +} diff --git a/packages/db/drizzle/meta/0000_snapshot.json b/packages/db/drizzle/meta/0000_snapshot.json deleted file mode 100644 index 696e76213..000000000 --- a/packages/db/drizzle/meta/0000_snapshot.json +++ /dev/null @@ -1,4869 +0,0 @@ -{ - "id": "cb9cbb50-2b84-4796-b353-a8781cec9399", - "prevId": "00000000-0000-0000-0000-000000000000", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "model_override": { - "name": "model_override", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_openrouter_settings": { - "name": "org_openrouter_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "api_key_ciphertext": { - "name": "api_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "api_key_iv": { - "name": "api_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "api_key_tag": { - "name": "api_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "api_key_last4": { - "name": "api_key_last4", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_openrouter_settings_org_id_pk": { - "name": "org_openrouter_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0001_snapshot.json b/packages/db/drizzle/meta/0001_snapshot.json deleted file mode 100644 index ef3f9b734..000000000 --- a/packages/db/drizzle/meta/0001_snapshot.json +++ /dev/null @@ -1,5368 +0,0 @@ -{ - "id": "58e27c3a-f8f5-41db-9c51-151f19d9f96f", - "prevId": "cb9cbb50-2b84-4796-b353-a8781cec9399", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0002_snapshot.json b/packages/db/drizzle/meta/0002_snapshot.json deleted file mode 100644 index 4b0f0a772..000000000 --- a/packages/db/drizzle/meta/0002_snapshot.json +++ /dev/null @@ -1,5589 +0,0 @@ -{ - "id": "bbf78dc1-583d-473f-9a6f-62296755db5d", - "prevId": "58e27c3a-f8f5-41db-9c51-151f19d9f96f", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0003_snapshot.json b/packages/db/drizzle/meta/0003_snapshot.json deleted file mode 100644 index 8120d5ea5..000000000 --- a/packages/db/drizzle/meta/0003_snapshot.json +++ /dev/null @@ -1,5589 +0,0 @@ -{ - "id": "85baabb9-e723-47c7-b52e-7a67d2d7d8b0", - "prevId": "bbf78dc1-583d-473f-9a6f-62296755db5d", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0004_snapshot.json b/packages/db/drizzle/meta/0004_snapshot.json deleted file mode 100644 index 29dcc03a6..000000000 --- a/packages/db/drizzle/meta/0004_snapshot.json +++ /dev/null @@ -1,5595 +0,0 @@ -{ - "id": "137e0050-a264-4a2e-bf0a-e2f8433e9ef7", - "prevId": "85baabb9-e723-47c7-b52e-7a67d2d7d8b0", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0005_snapshot.json b/packages/db/drizzle/meta/0005_snapshot.json deleted file mode 100644 index d31a719c9..000000000 --- a/packages/db/drizzle/meta/0005_snapshot.json +++ /dev/null @@ -1,5601 +0,0 @@ -{ - "id": "421a2536-5822-41c6-a2c5-f322ab8b0fba", - "prevId": "137e0050-a264-4a2e-bf0a-e2f8433e9ef7", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0006_snapshot.json b/packages/db/drizzle/meta/0006_snapshot.json deleted file mode 100644 index c31f97407..000000000 --- a/packages/db/drizzle/meta/0006_snapshot.json +++ /dev/null @@ -1,5756 +0,0 @@ -{ - "id": "cb5366dd-6209-4c49-bada-eb7535a928ad", - "prevId": "421a2536-5822-41c6-a2c5-f322ab8b0fba", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0007_snapshot.json b/packages/db/drizzle/meta/0007_snapshot.json deleted file mode 100644 index 708422867..000000000 --- a/packages/db/drizzle/meta/0007_snapshot.json +++ /dev/null @@ -1,5762 +0,0 @@ -{ - "id": "6ddf6987-d54b-48b5-9412-c4a0d5f8fc66", - "prevId": "cb5366dd-6209-4c49-bada-eb7535a928ad", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0008_snapshot.json b/packages/db/drizzle/meta/0008_snapshot.json deleted file mode 100644 index 395b03a6e..000000000 --- a/packages/db/drizzle/meta/0008_snapshot.json +++ /dev/null @@ -1,5768 +0,0 @@ -{ - "id": "344e71a4-0780-4d1f-8402-b561ca6194d1", - "prevId": "6ddf6987-d54b-48b5-9412-c4a0d5f8fc66", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0009_snapshot.json b/packages/db/drizzle/meta/0009_snapshot.json deleted file mode 100644 index a36e536e4..000000000 --- a/packages/db/drizzle/meta/0009_snapshot.json +++ /dev/null @@ -1,5768 +0,0 @@ -{ - "id": "6a20cc5b-1bd9-4cc1-b5d3-823f94dfd6b0", - "prevId": "344e71a4-0780-4d1f-8402-b561ca6194d1", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "name": "scrape_target_checks_id_seq", - "increment": "1", - "minValue": "1", - "maxValue": "2147483647", - "startWith": "1", - "cache": "1", - "cycle": false, - "schema": "public", - "type": "byDefault" - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "columnsFrom": ["target_id"], - "tableTo": "scrape_targets", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "views": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0010_snapshot.json b/packages/db/drizzle/meta/0010_snapshot.json deleted file mode 100644 index ef570f1a6..000000000 --- a/packages/db/drizzle/meta/0010_snapshot.json +++ /dev/null @@ -1,5774 +0,0 @@ -{ - "id": "346220d3-f1f9-494e-bd78-7f916ee31352", - "prevId": "6a20cc5b-1bd9-4cc1-b5d3-823f94dfd6b0", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0011_snapshot.json b/packages/db/drizzle/meta/0011_snapshot.json deleted file mode 100644 index d7871d6c7..000000000 --- a/packages/db/drizzle/meta/0011_snapshot.json +++ /dev/null @@ -1,5774 +0,0 @@ -{ - "id": "8c4b199f-f711-4b87-961a-1672eb536e58", - "prevId": "346220d3-f1f9-494e-bd78-7f916ee31352", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0012_snapshot.json b/packages/db/drizzle/meta/0012_snapshot.json deleted file mode 100644 index 1e01f1c0b..000000000 --- a/packages/db/drizzle/meta/0012_snapshot.json +++ /dev/null @@ -1,6140 +0,0 @@ -{ - "id": "8baf3939-c56d-4338-b7ee-43205d8877b7", - "prevId": "8c4b199f-f711-4b87-961a-1672eb536e58", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0013_snapshot.json b/packages/db/drizzle/meta/0013_snapshot.json deleted file mode 100644 index 7e6ec401c..000000000 --- a/packages/db/drizzle/meta/0013_snapshot.json +++ /dev/null @@ -1,6146 +0,0 @@ -{ - "id": "0edb883f-4a57-4ced-9565-d8e5cd2304b7", - "prevId": "8baf3939-c56d-4338-b7ee-43205d8877b7", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0014_snapshot.json b/packages/db/drizzle/meta/0014_snapshot.json deleted file mode 100644 index 026785852..000000000 --- a/packages/db/drizzle/meta/0014_snapshot.json +++ /dev/null @@ -1,6146 +0,0 @@ -{ - "id": "2afa2ceb-68b8-4728-b35c-a470b1bfe052", - "prevId": "0edb883f-4a57-4ced-9565-d8e5cd2304b7", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "name": "scrape_target_checks_id_seq", - "increment": "1", - "minValue": "1", - "maxValue": "2147483647", - "startWith": "1", - "cache": "1", - "cycle": false, - "schema": "public", - "type": "byDefault" - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "columnsFrom": ["target_id"], - "tableTo": "scrape_targets", - "columnsTo": ["id"], - "onUpdate": "no action", - "onDelete": "cascade" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "with": {}, - "method": "btree", - "concurrently": false - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "with": {}, - "method": "btree", - "concurrently": false - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "views": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0015_snapshot.json b/packages/db/drizzle/meta/0015_snapshot.json deleted file mode 100644 index bb1d43c90..000000000 --- a/packages/db/drizzle/meta/0015_snapshot.json +++ /dev/null @@ -1,6268 +0,0 @@ -{ - "id": "1e3a55ce-bc0a-4d6b-92f7-8acdb4291f59", - "prevId": "2afa2ceb-68b8-4728-b35c-a470b1bfe052", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0016_snapshot.json b/packages/db/drizzle/meta/0016_snapshot.json deleted file mode 100644 index 19f118ec9..000000000 --- a/packages/db/drizzle/meta/0016_snapshot.json +++ /dev/null @@ -1,6274 +0,0 @@ -{ - "id": "641d5c00-6783-4702-8a85-761b0a28db3f", - "prevId": "1e3a55ce-bc0a-4d6b-92f7-8acdb4291f59", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0017_snapshot.json b/packages/db/drizzle/meta/0017_snapshot.json deleted file mode 100644 index 8bc5650ab..000000000 --- a/packages/db/drizzle/meta/0017_snapshot.json +++ /dev/null @@ -1,6408 +0,0 @@ -{ - "id": "76a82c57-abd9-4a37-a6fa-6d33b265f96b", - "prevId": "641d5c00-6783-4702-8a85-761b0a28db3f", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0018_snapshot.json b/packages/db/drizzle/meta/0018_snapshot.json deleted file mode 100644 index 25ab2fb64..000000000 --- a/packages/db/drizzle/meta/0018_snapshot.json +++ /dev/null @@ -1,6752 +0,0 @@ -{ - "id": "13bceb5c-2ea1-412b-9694-dabaad5393b8", - "prevId": "76a82c57-abd9-4a37-a6fa-6d33b265f96b", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_org_idx": { - "name": "anomaly_detector_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_states_org_idx": { - "name": "error_issue_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0019_snapshot.json b/packages/db/drizzle/meta/0019_snapshot.json deleted file mode 100644 index 09650101b..000000000 --- a/packages/db/drizzle/meta/0019_snapshot.json +++ /dev/null @@ -1,6743 +0,0 @@ -{ - "id": "ea467b74-4d9a-412a-a4c3-4ace47087683", - "prevId": "13bceb5c-2ea1-412b-9694-dabaad5393b8", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0020_snapshot.json b/packages/db/drizzle/meta/0020_snapshot.json deleted file mode 100644 index 51c996cfd..000000000 --- a/packages/db/drizzle/meta/0020_snapshot.json +++ /dev/null @@ -1,6762 +0,0 @@ -{ - "id": "d42b58a4-c78d-4621-a3e6-95d6c49b0553", - "prevId": "ea467b74-4d9a-412a-a4c3-4ace47087683", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0021_snapshot.json b/packages/db/drizzle/meta/0021_snapshot.json deleted file mode 100644 index 5c95a997e..000000000 --- a/packages/db/drizzle/meta/0021_snapshot.json +++ /dev/null @@ -1,6775 +0,0 @@ -{ - "id": "099f754a-afd1-4f7b-8db9-3e11df60aec5", - "prevId": "d42b58a4-c78d-4621-a3e6-95d6c49b0553", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0022_snapshot.json b/packages/db/drizzle/meta/0022_snapshot.json deleted file mode 100644 index b4e82b6bd..000000000 --- a/packages/db/drizzle/meta/0022_snapshot.json +++ /dev/null @@ -1,6775 +0,0 @@ -{ - "id": "8881abe6-19a0-48be-b930-88b43e90810c", - "prevId": "099f754a-afd1-4f7b-8db9-3e11df60aec5", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0023_snapshot.json b/packages/db/drizzle/meta/0023_snapshot.json deleted file mode 100644 index ea90e6e2a..000000000 --- a/packages/db/drizzle/meta/0023_snapshot.json +++ /dev/null @@ -1,6969 +0,0 @@ -{ - "id": "152dce32-2d6c-487d-8278-2aeb9d29eaa3", - "prevId": "8881abe6-19a0-48be-b930-88b43e90810c", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0024_snapshot.json b/packages/db/drizzle/meta/0024_snapshot.json deleted file mode 100644 index af2c137bb..000000000 --- a/packages/db/drizzle/meta/0024_snapshot.json +++ /dev/null @@ -1,6975 +0,0 @@ -{ - "id": "02ca067d-a47d-4582-85df-d7c0d11e135f", - "prevId": "152dce32-2d6c-487d-8278-2aeb9d29eaa3", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0025_snapshot.json b/packages/db/drizzle/meta/0025_snapshot.json deleted file mode 100644 index 113a3029e..000000000 --- a/packages/db/drizzle/meta/0025_snapshot.json +++ /dev/null @@ -1,7085 +0,0 @@ -{ - "id": "ed9b467d-665c-4ec2-a3d9-ae5d9ec7fe9f", - "prevId": "02ca067d-a47d-4582-85df-d7c0d11e135f", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "metric_name": { - "name": "metric_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_type": { - "name": "metric_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "metric_aggregation": { - "name": "metric_aggregation", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_spend_limits": { - "name": "org_spend_limits", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "monthly_limit_cents": { - "name": "monthly_limit_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "enforcement_mode": { - "name": "enforcement_mode", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'notify'" - }, - "alert_threshold_percents": { - "name": "alert_threshold_percents", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[80,100]'::jsonb" - }, - "feature_caps": { - "name": "feature_caps", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "evaluated_spend_cents": { - "name": "evaluated_spend_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "breached_at": { - "name": "breached_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_at": { - "name": "paused_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_features": { - "name": "paused_features", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notified_thresholds": { - "name": "notified_thresholds", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "cycle_started_at": { - "name": "cycle_started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0026_snapshot.json b/packages/db/drizzle/meta/0026_snapshot.json deleted file mode 100644 index e1fa843ec..000000000 --- a/packages/db/drizzle/meta/0026_snapshot.json +++ /dev/null @@ -1,7041 +0,0 @@ -{ - "id": "cd402582-5321-4ca1-84cd-34369d5c8b97", - "prevId": "ed9b467d-665c-4ec2-a3d9-ae5d9ec7fe9f", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": ["org_id", "rule_id", "group_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": ["org_id", "detector_key"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": ["org_id", "id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": ["org_id", "issue_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_spend_limits": { - "name": "org_spend_limits", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "monthly_limit_cents": { - "name": "monthly_limit_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "enforcement_mode": { - "name": "enforcement_mode", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'notify'" - }, - "alert_threshold_percents": { - "name": "alert_threshold_percents", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[80,100]'::jsonb" - }, - "feature_caps": { - "name": "feature_caps", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "evaluated_spend_cents": { - "name": "evaluated_spend_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "breached_at": { - "name": "breached_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_at": { - "name": "paused_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_features": { - "name": "paused_features", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notified_thresholds": { - "name": "notified_thresholds", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "cycle_started_at": { - "name": "cycle_started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": ["org_id"] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": ["target_id"], - "columnsTo": ["id"], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0027_snapshot.json b/packages/db/drizzle/meta/0027_snapshot.json deleted file mode 100644 index c3b8dcd1d..000000000 --- a/packages/db/drizzle/meta/0027_snapshot.json +++ /dev/null @@ -1,7114 +0,0 @@ -{ - "id": "3990bcec-e464-4f60-af52-55b87d3877b0", - "prevId": "cd402582-5321-4ca1-84cd-34369d5c8b97", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_spend_limits": { - "name": "org_spend_limits", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "monthly_limit_cents": { - "name": "monthly_limit_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "enforcement_mode": { - "name": "enforcement_mode", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'notify'" - }, - "alert_threshold_percents": { - "name": "alert_threshold_percents", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[80,100]'::jsonb" - }, - "feature_caps": { - "name": "feature_caps", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "evaluated_spend_cents": { - "name": "evaluated_spend_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "breached_at": { - "name": "breached_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_at": { - "name": "paused_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_features": { - "name": "paused_features", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notified_thresholds": { - "name": "notified_thresholds", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "cycle_started_at": { - "name": "cycle_started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0030_snapshot.json b/packages/db/drizzle/meta/0030_snapshot.json deleted file mode 100644 index a489f6a01..000000000 --- a/packages/db/drizzle/meta/0030_snapshot.json +++ /dev/null @@ -1,7314 +0,0 @@ -{ - "id": "d8878bd3-11fe-47fe-b047-0815a648de67", - "prevId": "3990bcec-e464-4f60-af52-55b87d3877b0", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_spend_limits": { - "name": "org_spend_limits", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "monthly_limit_cents": { - "name": "monthly_limit_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "enforcement_mode": { - "name": "enforcement_mode", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'notify'" - }, - "alert_threshold_percents": { - "name": "alert_threshold_percents", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[80,100]'::jsonb" - }, - "feature_caps": { - "name": "feature_caps", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "evaluated_spend_cents": { - "name": "evaluated_spend_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "breached_at": { - "name": "breached_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_at": { - "name": "paused_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_features": { - "name": "paused_features", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notified_thresholds": { - "name": "notified_thresholds", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "cycle_started_at": { - "name": "cycle_started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0031_snapshot.json b/packages/db/drizzle/meta/0031_snapshot.json deleted file mode 100644 index e88a67923..000000000 --- a/packages/db/drizzle/meta/0031_snapshot.json +++ /dev/null @@ -1,7582 +0,0 @@ -{ - "id": "d2ff7853-29e9-4a14-b6c7-006c8a16acbe", - "prevId": "d8878bd3-11fe-47fe-b047-0815a648de67", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_spend_limits": { - "name": "org_spend_limits", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "monthly_limit_cents": { - "name": "monthly_limit_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "enforcement_mode": { - "name": "enforcement_mode", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'notify'" - }, - "alert_threshold_percents": { - "name": "alert_threshold_percents", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[80,100]'::jsonb" - }, - "feature_caps": { - "name": "feature_caps", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "evaluated_spend_cents": { - "name": "evaluated_spend_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "breached_at": { - "name": "breached_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_at": { - "name": "paused_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_features": { - "name": "paused_features", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notified_thresholds": { - "name": "notified_thresholds", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "cycle_started_at": { - "name": "cycle_started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0032_snapshot.json b/packages/db/drizzle/meta/0032_snapshot.json deleted file mode 100644 index 9beb15c85..000000000 --- a/packages/db/drizzle/meta/0032_snapshot.json +++ /dev/null @@ -1,7596 +0,0 @@ -{ - "id": "28a15535-ff6c-4deb-93fa-218f20be8703", - "prevId": "d2ff7853-29e9-4a14-b6c7-006c8a16acbe", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "fanout_enabled": { - "name": "fanout_enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 60 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_spend_limits": { - "name": "org_spend_limits", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "monthly_limit_cents": { - "name": "monthly_limit_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "enforcement_mode": { - "name": "enforcement_mode", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'notify'" - }, - "alert_threshold_percents": { - "name": "alert_threshold_percents", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[80,100]'::jsonb" - }, - "feature_caps": { - "name": "feature_caps", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "evaluated_spend_cents": { - "name": "evaluated_spend_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "breached_at": { - "name": "breached_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_at": { - "name": "paused_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_features": { - "name": "paused_features", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notified_thresholds": { - "name": "notified_thresholds", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "cycle_started_at": { - "name": "cycle_started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0033_snapshot.json b/packages/db/drizzle/meta/0033_snapshot.json deleted file mode 100644 index 8ceb24042..000000000 --- a/packages/db/drizzle/meta/0033_snapshot.json +++ /dev/null @@ -1,7609 +0,0 @@ -{ - "id": "5ec1bdd0-8098-4902-bf3b-90376265bd21", - "prevId": "28a15535-ff6c-4deb-93fa-218f20be8703", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "fanout_enabled": { - "name": "fanout_enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 60 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_spend_limits": { - "name": "org_spend_limits", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "monthly_limit_cents": { - "name": "monthly_limit_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "enforcement_mode": { - "name": "enforcement_mode", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'notify'" - }, - "alert_threshold_percents": { - "name": "alert_threshold_percents", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[80,100]'::jsonb" - }, - "feature_caps": { - "name": "feature_caps", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "evaluated_spend_cents": { - "name": "evaluated_spend_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "breached_at": { - "name": "breached_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_at": { - "name": "paused_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_features": { - "name": "paused_features", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notified_thresholds": { - "name": "notified_thresholds", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "cycle_started_at": { - "name": "cycle_started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0034_snapshot.json b/packages/db/drizzle/meta/0034_snapshot.json deleted file mode 100644 index e99380610..000000000 --- a/packages/db/drizzle/meta/0034_snapshot.json +++ /dev/null @@ -1,7615 +0,0 @@ -{ - "id": "95e04c2f-0036-49a2-bd4c-2a3ba208d57b", - "prevId": "5ec1bdd0-8098-4902-bf3b-90376265bd21", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "fanout_enabled": { - "name": "fanout_enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 60 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_spend_limits": { - "name": "org_spend_limits", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "monthly_limit_cents": { - "name": "monthly_limit_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "enforcement_mode": { - "name": "enforcement_mode", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'notify'" - }, - "alert_threshold_percents": { - "name": "alert_threshold_percents", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[80,100]'::jsonb" - }, - "feature_caps": { - "name": "feature_caps", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "evaluated_spend_cents": { - "name": "evaluated_spend_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "breached_at": { - "name": "breached_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_at": { - "name": "paused_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_features": { - "name": "paused_features", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notified_thresholds": { - "name": "notified_thresholds", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "cycle_started_at": { - "name": "cycle_started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0035_snapshot.json b/packages/db/drizzle/meta/0035_snapshot.json deleted file mode 100644 index 008b61b11..000000000 --- a/packages/db/drizzle/meta/0035_snapshot.json +++ /dev/null @@ -1,7664 +0,0 @@ -{ - "id": "f50adb8b-0021-4d95-9e31-038472eaf823", - "prevId": "95e04c2f-0036-49a2-bd4c-2a3ba208d57b", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_runs": { - "name": "ai_triage_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "context_json": { - "name": "context_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "result_json": { - "name": "result_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "completed_at": { - "name": "completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "ai_triage_runs_incident_idx": { - "name": "ai_triage_runs_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_issue_idx": { - "name": "ai_triage_runs_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "ai_triage_runs_org_created_idx": { - "name": "ai_triage_runs_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "fanout_enabled": { - "name": "fanout_enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_spend_limits": { - "name": "org_spend_limits", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "monthly_limit_cents": { - "name": "monthly_limit_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "enforcement_mode": { - "name": "enforcement_mode", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'notify'" - }, - "alert_threshold_percents": { - "name": "alert_threshold_percents", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[80,100]'::jsonb" - }, - "feature_caps": { - "name": "feature_caps", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "evaluated_spend_cents": { - "name": "evaluated_spend_cents", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "breached_at": { - "name": "breached_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_at": { - "name": "paused_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "paused_features": { - "name": "paused_features", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notified_thresholds": { - "name": "notified_thresholds", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "cycle_started_at": { - "name": "cycle_started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0037_snapshot.json b/packages/db/drizzle/meta/0037_snapshot.json deleted file mode 100644 index 8df2b3940..000000000 --- a/packages/db/drizzle/meta/0037_snapshot.json +++ /dev/null @@ -1,7600 +0,0 @@ -{ - "id": "4f98d76f-3c18-45d9-882b-293708695b62", - "prevId": "f50adb8b-0021-4d95-9e31-038472eaf823", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0039_snapshot.json b/packages/db/drizzle/meta/0039_snapshot.json deleted file mode 100644 index 87d0abfbf..000000000 --- a/packages/db/drizzle/meta/0039_snapshot.json +++ /dev/null @@ -1,7792 +0,0 @@ -{ - "id": "a6930e6e-aa02-4dca-b2c5-b4a054168688", - "prevId": "4f98d76f-3c18-45d9-882b-293708695b62", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} diff --git a/packages/db/drizzle/meta/0040_snapshot.json b/packages/db/drizzle/meta/0040_snapshot.json deleted file mode 100644 index 19f739c65..000000000 --- a/packages/db/drizzle/meta/0040_snapshot.json +++ /dev/null @@ -1,7807 +0,0 @@ -{ - "id": "b6a16e18-751f-4761-a3a4-91359e47be1c", - "prevId": "a6930e6e-aa02-4dca-b2c5-b4a054168688", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0041_snapshot.json b/packages/db/drizzle/meta/0041_snapshot.json deleted file mode 100644 index 6cf8ca0fc..000000000 --- a/packages/db/drizzle/meta/0041_snapshot.json +++ /dev/null @@ -1,7974 +0,0 @@ -{ - "id": "4d9de003-fc6f-4e1f-9e40-6cedca1192cf", - "prevId": "b6a16e18-751f-4761-a3a4-91359e47be1c", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0042_snapshot.json b/packages/db/drizzle/meta/0042_snapshot.json deleted file mode 100644 index 6f8670909..000000000 --- a/packages/db/drizzle/meta/0042_snapshot.json +++ /dev/null @@ -1,7999 +0,0 @@ -{ - "id": "29b53fd7-dd32-4e7c-89e8-7b3c800558ef", - "prevId": "4d9de003-fc6f-4e1f-9e40-6cedca1192cf", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0043_snapshot.json b/packages/db/drizzle/meta/0043_snapshot.json deleted file mode 100644 index fbd0efef2..000000000 --- a/packages/db/drizzle/meta/0043_snapshot.json +++ /dev/null @@ -1,8027 +0,0 @@ -{ - "id": "4b64da6a-ce63-44a7-9c27-e4fdb89af9f2", - "prevId": "29b53fd7-dd32-4e7c-89e8-7b3c800558ef", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0044_snapshot.json b/packages/db/drizzle/meta/0044_snapshot.json deleted file mode 100644 index 3781be3f8..000000000 --- a/packages/db/drizzle/meta/0044_snapshot.json +++ /dev/null @@ -1,8178 +0,0 @@ -{ - "id": "329a2256-51ef-42a9-9ba8-8e1409203033", - "prevId": "4b64da6a-ce63-44a7-9c27-e4fdb89af9f2", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0046_snapshot.json b/packages/db/drizzle/meta/0046_snapshot.json deleted file mode 100644 index 5ad1c147b..000000000 --- a/packages/db/drizzle/meta/0046_snapshot.json +++ /dev/null @@ -1,8300 +0,0 @@ -{ - "id": "22510189-9670-45c9-ae72-860908016f38", - "prevId": "329a2256-51ef-42a9-9ba8-8e1409203033", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "live_activity_start_token": { - "name": "live_activity_start_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.live_activities": { - "name": "live_activities", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_id": { - "name": "device_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "activity_id": { - "name": "activity_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "push_token": { - "name": "push_token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ended_at": { - "name": "ended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ended_reason": { - "name": "ended_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "live_activities_device_incident_unique": { - "name": "live_activities_device_incident_unique", - "columns": [ - { - "expression": "device_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "live_activities_incident_idx": { - "name": "live_activities_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0047_snapshot.json b/packages/db/drizzle/meta/0047_snapshot.json deleted file mode 100644 index 0f4dedaad..000000000 --- a/packages/db/drizzle/meta/0047_snapshot.json +++ /dev/null @@ -1,8696 +0,0 @@ -{ - "id": "696d811c-4601-428c-9558-354ffb150ffd", - "prevId": "22510189-9670-45c9-ae72-860908016f38", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "live_activity_start_token": { - "name": "live_activity_start_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_pull_requests": { - "name": "error_issue_pull_requests", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repo_full_name": { - "name": "repo_full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "merge_commit_sha": { - "name": "merge_commit_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "link_source": { - "name": "link_source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "linked_by_actor_id": { - "name": "linked_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_pull_requests_issue_pr_idx": { - "name": "error_issue_pull_requests_issue_pr_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_repo_number_idx": { - "name": "error_issue_pull_requests_repo_number_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_issue_idx": { - "name": "error_issue_pull_requests_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_verifications": { - "name": "error_issue_verifications", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "pull_request_id": { - "name": "pull_request_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'waiting'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "verify_after": { - "name": "verify_after", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "baseline_versions_json": { - "name": "baseline_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "baseline_occurrence_count": { - "name": "baseline_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "baseline_rate_per_hour": { - "name": "baseline_rate_per_hour", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict_note": { - "name": "verdict_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_merge_occurrence_count": { - "name": "post_merge_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_verifications_due_idx": { - "name": "error_issue_verifications_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "verify_after", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_issue_idx": { - "name": "error_issue_verifications_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_open_idx": { - "name": "error_issue_verifications_open_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.live_activities": { - "name": "live_activities", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_id": { - "name": "device_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "activity_id": { - "name": "activity_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "push_token": { - "name": "push_token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ended_at": { - "name": "ended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ended_reason": { - "name": "ended_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "live_activities_device_incident_unique": { - "name": "live_activities_device_incident_unique", - "columns": [ - { - "expression": "device_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "live_activities_incident_idx": { - "name": "live_activities_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0048_snapshot.json b/packages/db/drizzle/meta/0048_snapshot.json deleted file mode 100644 index 039d67a5e..000000000 --- a/packages/db/drizzle/meta/0048_snapshot.json +++ /dev/null @@ -1,8703 +0,0 @@ -{ - "id": "db9f2438-7b4d-4e5a-98e6-eb1f4037e272", - "prevId": "696d811c-4601-428c-9558-354ffb150ffd", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_idx": { - "name": "anomaly_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "live_activity_start_token": { - "name": "live_activity_start_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_pull_requests": { - "name": "error_issue_pull_requests", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repo_full_name": { - "name": "repo_full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "merge_commit_sha": { - "name": "merge_commit_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "link_source": { - "name": "link_source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "linked_by_actor_id": { - "name": "linked_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_pull_requests_issue_pr_idx": { - "name": "error_issue_pull_requests_issue_pr_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_repo_number_idx": { - "name": "error_issue_pull_requests_repo_number_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_issue_idx": { - "name": "error_issue_pull_requests_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_verifications": { - "name": "error_issue_verifications", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "pull_request_id": { - "name": "pull_request_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'waiting'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "verify_after": { - "name": "verify_after", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "baseline_versions_json": { - "name": "baseline_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "baseline_occurrence_count": { - "name": "baseline_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "baseline_rate_per_hour": { - "name": "baseline_rate_per_hour", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict_note": { - "name": "verdict_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_merge_occurrence_count": { - "name": "post_merge_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_verifications_due_idx": { - "name": "error_issue_verifications_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "verify_after", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_issue_idx": { - "name": "error_issue_verifications_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_open_idx": { - "name": "error_issue_verifications_open_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_last_seen_idx": { - "name": "error_issues_org_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.live_activities": { - "name": "live_activities", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_id": { - "name": "device_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "activity_id": { - "name": "activity_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "push_token": { - "name": "push_token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ended_at": { - "name": "ended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ended_reason": { - "name": "ended_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "live_activities_device_incident_unique": { - "name": "live_activities_device_incident_unique", - "columns": [ - { - "expression": "device_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "live_activities_incident_idx": { - "name": "live_activities_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0049_snapshot.json b/packages/db/drizzle/meta/0049_snapshot.json deleted file mode 100644 index ca7fee812..000000000 --- a/packages/db/drizzle/meta/0049_snapshot.json +++ /dev/null @@ -1,8722 +0,0 @@ -{ - "id": "d60d7088-c27b-48cd-94b6-6d9fd59a02ff", - "prevId": "db9f2438-7b4d-4e5a-98e6-eb1f4037e272", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_triggered_idx": { - "name": "anomaly_incidents_org_status_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_dataset_zone_idx": { - "name": "cf_analytics_state_org_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "live_activity_start_token": { - "name": "live_activity_start_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_pull_requests": { - "name": "error_issue_pull_requests", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repo_full_name": { - "name": "repo_full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "merge_commit_sha": { - "name": "merge_commit_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "link_source": { - "name": "link_source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "linked_by_actor_id": { - "name": "linked_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_pull_requests_issue_pr_idx": { - "name": "error_issue_pull_requests_issue_pr_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_repo_number_idx": { - "name": "error_issue_pull_requests_repo_number_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_issue_idx": { - "name": "error_issue_pull_requests_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_verifications": { - "name": "error_issue_verifications", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "pull_request_id": { - "name": "pull_request_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'waiting'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "verify_after": { - "name": "verify_after", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "baseline_versions_json": { - "name": "baseline_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "baseline_occurrence_count": { - "name": "baseline_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "baseline_rate_per_hour": { - "name": "baseline_rate_per_hour", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict_note": { - "name": "verdict_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_merge_occurrence_count": { - "name": "post_merge_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_verifications_due_idx": { - "name": "error_issue_verifications_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "verify_after", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_issue_idx": { - "name": "error_issue_verifications_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_open_idx": { - "name": "error_issue_verifications_open_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_live_seen_idx": { - "name": "error_issues_org_live_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.live_activities": { - "name": "live_activities", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_id": { - "name": "device_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "activity_id": { - "name": "activity_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "push_token": { - "name": "push_token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ended_at": { - "name": "ended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ended_reason": { - "name": "ended_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "live_activities_device_incident_unique": { - "name": "live_activities_device_incident_unique", - "columns": [ - { - "expression": "device_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "live_activities_incident_idx": { - "name": "live_activities_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0050_snapshot.json b/packages/db/drizzle/meta/0050_snapshot.json deleted file mode 100644 index a3a231453..000000000 --- a/packages/db/drizzle/meta/0050_snapshot.json +++ /dev/null @@ -1,8747 +0,0 @@ -{ - "id": "4c8a2222-430b-45e3-883e-1b3d57661ac1", - "prevId": "d60d7088-c27b-48cd-94b6-6d9fd59a02ff", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_triggered_idx": { - "name": "anomaly_incidents_org_status_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_account_dataset_zone_idx": { - "name": "cf_analytics_state_org_account_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "account_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "live_activity_start_token": { - "name": "live_activity_start_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_pull_requests": { - "name": "error_issue_pull_requests", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repo_full_name": { - "name": "repo_full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "merge_commit_sha": { - "name": "merge_commit_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "link_source": { - "name": "link_source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "linked_by_actor_id": { - "name": "linked_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_pull_requests_issue_pr_idx": { - "name": "error_issue_pull_requests_issue_pr_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_repo_number_idx": { - "name": "error_issue_pull_requests_repo_number_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_issue_idx": { - "name": "error_issue_pull_requests_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_verifications": { - "name": "error_issue_verifications", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "pull_request_id": { - "name": "pull_request_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'waiting'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "verify_after": { - "name": "verify_after", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "baseline_versions_json": { - "name": "baseline_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "baseline_occurrence_count": { - "name": "baseline_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "baseline_rate_per_hour": { - "name": "baseline_rate_per_hour", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict_note": { - "name": "verdict_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_merge_occurrence_count": { - "name": "post_merge_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_verifications_due_idx": { - "name": "error_issue_verifications_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "verify_after", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_issue_idx": { - "name": "error_issue_verifications_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_open_idx": { - "name": "error_issue_verifications_open_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_live_seen_idx": { - "name": "error_issues_org_live_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.live_activities": { - "name": "live_activities", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_id": { - "name": "device_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "activity_id": { - "name": "activity_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "push_token": { - "name": "push_token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ended_at": { - "name": "ended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ended_reason": { - "name": "ended_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "live_activities_device_incident_unique": { - "name": "live_activities_device_incident_unique", - "columns": [ - { - "expression": "device_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "live_activities_incident_idx": { - "name": "live_activities_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "granted_accounts_json": { - "name": "granted_accounts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0051_snapshot.json b/packages/db/drizzle/meta/0051_snapshot.json deleted file mode 100644 index f5e3c4e58..000000000 --- a/packages/db/drizzle/meta/0051_snapshot.json +++ /dev/null @@ -1,8761 +0,0 @@ -{ - "id": "2bf770ac-48be-4209-8656-d6dbbab7d442", - "prevId": "4c8a2222-430b-45e3-883e-1b3d57661ac1", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_triggered_idx": { - "name": "anomaly_incidents_org_status_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_account_dataset_zone_idx": { - "name": "cf_analytics_state_org_account_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "account_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "live_activity_start_token": { - "name": "live_activity_start_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "namespaces_json": { - "name": "namespaces_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "environments_json": { - "name": "environments_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_pull_requests": { - "name": "error_issue_pull_requests", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repo_full_name": { - "name": "repo_full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "merge_commit_sha": { - "name": "merge_commit_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "link_source": { - "name": "link_source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "linked_by_actor_id": { - "name": "linked_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_pull_requests_issue_pr_idx": { - "name": "error_issue_pull_requests_issue_pr_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_repo_number_idx": { - "name": "error_issue_pull_requests_repo_number_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_issue_idx": { - "name": "error_issue_pull_requests_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_verifications": { - "name": "error_issue_verifications", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "pull_request_id": { - "name": "pull_request_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'waiting'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "verify_after": { - "name": "verify_after", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "baseline_versions_json": { - "name": "baseline_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "baseline_occurrence_count": { - "name": "baseline_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "baseline_rate_per_hour": { - "name": "baseline_rate_per_hour", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict_note": { - "name": "verdict_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_merge_occurrence_count": { - "name": "post_merge_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_verifications_due_idx": { - "name": "error_issue_verifications_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "verify_after", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_issue_idx": { - "name": "error_issue_verifications_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_open_idx": { - "name": "error_issue_verifications_open_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_live_seen_idx": { - "name": "error_issues_org_live_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.live_activities": { - "name": "live_activities", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_id": { - "name": "device_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "activity_id": { - "name": "activity_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "push_token": { - "name": "push_token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ended_at": { - "name": "ended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ended_reason": { - "name": "ended_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "live_activities_device_incident_unique": { - "name": "live_activities_device_incident_unique", - "columns": [ - { - "expression": "device_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "live_activities_incident_idx": { - "name": "live_activities_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "granted_accounts_json": { - "name": "granted_accounts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0052_snapshot.json b/packages/db/drizzle/meta/0052_snapshot.json deleted file mode 100644 index 216a09ce9..000000000 --- a/packages/db/drizzle/meta/0052_snapshot.json +++ /dev/null @@ -1,8767 +0,0 @@ -{ - "id": "720cf991-e527-459c-8cf8-e928d35329c4", - "prevId": "2bf770ac-48be-4209-8656-d6dbbab7d442", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_triggered_idx": { - "name": "anomaly_incidents_org_status_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_account_dataset_zone_idx": { - "name": "cf_analytics_state_org_account_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "account_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "family_expires_at": { - "name": "family_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "live_activity_start_token": { - "name": "live_activity_start_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "namespaces_json": { - "name": "namespaces_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "environments_json": { - "name": "environments_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_pull_requests": { - "name": "error_issue_pull_requests", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repo_full_name": { - "name": "repo_full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "merge_commit_sha": { - "name": "merge_commit_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "link_source": { - "name": "link_source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "linked_by_actor_id": { - "name": "linked_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_pull_requests_issue_pr_idx": { - "name": "error_issue_pull_requests_issue_pr_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_repo_number_idx": { - "name": "error_issue_pull_requests_repo_number_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_issue_idx": { - "name": "error_issue_pull_requests_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_verifications": { - "name": "error_issue_verifications", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "pull_request_id": { - "name": "pull_request_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'waiting'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "verify_after": { - "name": "verify_after", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "baseline_versions_json": { - "name": "baseline_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "baseline_occurrence_count": { - "name": "baseline_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "baseline_rate_per_hour": { - "name": "baseline_rate_per_hour", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict_note": { - "name": "verdict_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_merge_occurrence_count": { - "name": "post_merge_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_verifications_due_idx": { - "name": "error_issue_verifications_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "verify_after", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_issue_idx": { - "name": "error_issue_verifications_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_open_idx": { - "name": "error_issue_verifications_open_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_live_seen_idx": { - "name": "error_issues_org_live_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.live_activities": { - "name": "live_activities", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_id": { - "name": "device_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "activity_id": { - "name": "activity_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "push_token": { - "name": "push_token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ended_at": { - "name": "ended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ended_reason": { - "name": "ended_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "live_activities_device_incident_unique": { - "name": "live_activities_device_incident_unique", - "columns": [ - { - "expression": "device_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "live_activities_incident_idx": { - "name": "live_activities_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "granted_accounts_json": { - "name": "granted_accounts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0053_snapshot.json b/packages/db/drizzle/meta/0053_snapshot.json deleted file mode 100644 index ba49f9508..000000000 --- a/packages/db/drizzle/meta/0053_snapshot.json +++ /dev/null @@ -1,8773 +0,0 @@ -{ - "id": "17544f97-9468-41aa-96a9-54260c5aad29", - "prevId": "720cf991-e527-459c-8cf8-e928d35329c4", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_triggered_idx": { - "name": "anomaly_incidents_org_status_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_account_dataset_zone_idx": { - "name": "cf_analytics_state_org_account_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "account_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "family_expires_at": { - "name": "family_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "live_activity_start_token": { - "name": "live_activity_start_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "opted_out_at": { - "name": "opted_out_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "namespaces_json": { - "name": "namespaces_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "environments_json": { - "name": "environments_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_pull_requests": { - "name": "error_issue_pull_requests", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repo_full_name": { - "name": "repo_full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "merge_commit_sha": { - "name": "merge_commit_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "link_source": { - "name": "link_source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "linked_by_actor_id": { - "name": "linked_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_pull_requests_issue_pr_idx": { - "name": "error_issue_pull_requests_issue_pr_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_repo_number_idx": { - "name": "error_issue_pull_requests_repo_number_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_issue_idx": { - "name": "error_issue_pull_requests_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_verifications": { - "name": "error_issue_verifications", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "pull_request_id": { - "name": "pull_request_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'waiting'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "verify_after": { - "name": "verify_after", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "baseline_versions_json": { - "name": "baseline_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "baseline_occurrence_count": { - "name": "baseline_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "baseline_rate_per_hour": { - "name": "baseline_rate_per_hour", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict_note": { - "name": "verdict_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_merge_occurrence_count": { - "name": "post_merge_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_verifications_due_idx": { - "name": "error_issue_verifications_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "verify_after", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_issue_idx": { - "name": "error_issue_verifications_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_open_idx": { - "name": "error_issue_verifications_open_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_live_seen_idx": { - "name": "error_issues_org_live_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.live_activities": { - "name": "live_activities", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_id": { - "name": "device_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "activity_id": { - "name": "activity_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "push_token": { - "name": "push_token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ended_at": { - "name": "ended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ended_reason": { - "name": "ended_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "live_activities_device_incident_unique": { - "name": "live_activities_device_incident_unique", - "columns": [ - { - "expression": "device_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "live_activities_incident_idx": { - "name": "live_activities_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "granted_accounts_json": { - "name": "granted_accounts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0054_snapshot.json b/packages/db/drizzle/meta/0054_snapshot.json deleted file mode 100644 index 387eae2cc..000000000 --- a/packages/db/drizzle/meta/0054_snapshot.json +++ /dev/null @@ -1,8823 +0,0 @@ -{ - "id": "08d43f4b-2c3a-4173-8e8e-1999ae66b5d0", - "prevId": "17544f97-9468-41aa-96a9-54260c5aad29", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_open_group_idx": { - "name": "alert_incidents_open_group_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "group_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"alert_incidents\".\"status\" = 'open'", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_triggered_idx": { - "name": "anomaly_incidents_org_status_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_open_detector_idx": { - "name": "anomaly_incidents_open_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"anomaly_incidents\".\"status\" = 'open'", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_account_dataset_zone_idx": { - "name": "cf_analytics_state_org_account_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "account_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "family_expires_at": { - "name": "family_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "live_activity_start_token": { - "name": "live_activity_start_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "opted_out_at": { - "name": "opted_out_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "namespaces_json": { - "name": "namespaces_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "environments_json": { - "name": "environments_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_pull_requests": { - "name": "error_issue_pull_requests", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repo_full_name": { - "name": "repo_full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "merge_commit_sha": { - "name": "merge_commit_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "link_source": { - "name": "link_source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "linked_by_actor_id": { - "name": "linked_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_pull_requests_issue_pr_idx": { - "name": "error_issue_pull_requests_issue_pr_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_repo_number_idx": { - "name": "error_issue_pull_requests_repo_number_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_issue_idx": { - "name": "error_issue_pull_requests_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_verifications": { - "name": "error_issue_verifications", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "pull_request_id": { - "name": "pull_request_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'waiting'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "verify_after": { - "name": "verify_after", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "baseline_versions_json": { - "name": "baseline_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "baseline_occurrence_count": { - "name": "baseline_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "baseline_rate_per_hour": { - "name": "baseline_rate_per_hour", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict_note": { - "name": "verdict_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_merge_occurrence_count": { - "name": "post_merge_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_verifications_due_idx": { - "name": "error_issue_verifications_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "verify_after", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_issue_idx": { - "name": "error_issue_verifications_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_open_idx": { - "name": "error_issue_verifications_open_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_live_seen_idx": { - "name": "error_issues_org_live_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.live_activities": { - "name": "live_activities", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_id": { - "name": "device_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "activity_id": { - "name": "activity_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "push_token": { - "name": "push_token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ended_at": { - "name": "ended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ended_reason": { - "name": "ended_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "live_activities_device_incident_unique": { - "name": "live_activities_device_incident_unique", - "columns": [ - { - "expression": "device_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "live_activities_incident_idx": { - "name": "live_activities_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "granted_accounts_json": { - "name": "granted_accounts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0055_snapshot.json b/packages/db/drizzle/meta/0055_snapshot.json deleted file mode 100644 index 9a6fea045..000000000 --- a/packages/db/drizzle/meta/0055_snapshot.json +++ /dev/null @@ -1,8829 +0,0 @@ -{ - "id": "0cec39f6-3042-46cc-9892-15c0badcb195", - "prevId": "08d43f4b-2c3a-4173-8e8e-1999ae66b5d0", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_open_group_idx": { - "name": "alert_incidents_open_group_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "group_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"alert_incidents\".\"status\" = 'open'", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_triggered_idx": { - "name": "anomaly_incidents_org_status_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_open_detector_idx": { - "name": "anomaly_incidents_open_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"anomaly_incidents\".\"status\" = 'open'", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_account_dataset_zone_idx": { - "name": "cf_analytics_state_org_account_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "account_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "family_expires_at": { - "name": "family_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "live_activity_start_token": { - "name": "live_activity_start_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "opted_out_at": { - "name": "opted_out_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "namespaces_json": { - "name": "namespaces_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "environments_json": { - "name": "environments_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_pull_requests": { - "name": "error_issue_pull_requests", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repo_full_name": { - "name": "repo_full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "merge_commit_sha": { - "name": "merge_commit_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "link_source": { - "name": "link_source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "linked_by_actor_id": { - "name": "linked_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_pull_requests_issue_pr_idx": { - "name": "error_issue_pull_requests_issue_pr_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_repo_number_idx": { - "name": "error_issue_pull_requests_repo_number_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_issue_idx": { - "name": "error_issue_pull_requests_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_verifications": { - "name": "error_issue_verifications", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "pull_request_id": { - "name": "pull_request_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'waiting'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "verify_after": { - "name": "verify_after", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "baseline_versions_json": { - "name": "baseline_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "baseline_occurrence_count": { - "name": "baseline_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "baseline_rate_per_hour": { - "name": "baseline_rate_per_hour", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict_note": { - "name": "verdict_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_merge_occurrence_count": { - "name": "post_merge_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_verifications_due_idx": { - "name": "error_issue_verifications_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "verify_after", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_issue_idx": { - "name": "error_issue_verifications_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_open_idx": { - "name": "error_issue_verifications_open_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_live_seen_idx": { - "name": "error_issues_org_live_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.live_activities": { - "name": "live_activities", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_id": { - "name": "device_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "activity_id": { - "name": "activity_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "push_token": { - "name": "push_token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ended_at": { - "name": "ended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ended_reason": { - "name": "ended_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "live_activities_device_incident_unique": { - "name": "live_activities_device_incident_unique", - "columns": [ - { - "expression": "device_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "live_activities_incident_idx": { - "name": "live_activities_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "granted_accounts_json": { - "name": "granted_accounts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reward_claimed_at": { - "name": "reward_claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0056_snapshot.json b/packages/db/drizzle/meta/0056_snapshot.json deleted file mode 100644 index 788ff1991..000000000 --- a/packages/db/drizzle/meta/0056_snapshot.json +++ /dev/null @@ -1,8835 +0,0 @@ -{ - "id": "4f35f45c-70a6-4c5d-8742-5e0339870156", - "prevId": "0cec39f6-3042-46cc-9892-15c0badcb195", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_open_group_idx": { - "name": "alert_incidents_open_group_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "group_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"alert_incidents\".\"status\" = 'open'", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_triggered_idx": { - "name": "anomaly_incidents_org_status_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_open_detector_idx": { - "name": "anomaly_incidents_open_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"anomaly_incidents\".\"status\" = 'open'", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_account_dataset_zone_idx": { - "name": "cf_analytics_state_org_account_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "account_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "family_expires_at": { - "name": "family_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "live_activity_start_token": { - "name": "live_activity_start_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "opted_out_at": { - "name": "opted_out_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "namespaces_json": { - "name": "namespaces_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "environments_json": { - "name": "environments_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_pull_requests": { - "name": "error_issue_pull_requests", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repo_full_name": { - "name": "repo_full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "merge_commit_sha": { - "name": "merge_commit_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "link_source": { - "name": "link_source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "linked_by_actor_id": { - "name": "linked_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_pull_requests_issue_pr_idx": { - "name": "error_issue_pull_requests_issue_pr_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_repo_number_idx": { - "name": "error_issue_pull_requests_repo_number_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_issue_idx": { - "name": "error_issue_pull_requests_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_verifications": { - "name": "error_issue_verifications", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "pull_request_id": { - "name": "pull_request_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'waiting'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "verify_after": { - "name": "verify_after", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "baseline_versions_json": { - "name": "baseline_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "baseline_occurrence_count": { - "name": "baseline_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "baseline_rate_per_hour": { - "name": "baseline_rate_per_hour", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict_note": { - "name": "verdict_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_merge_occurrence_count": { - "name": "post_merge_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_verifications_due_idx": { - "name": "error_issue_verifications_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "verify_after", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_issue_idx": { - "name": "error_issue_verifications_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_open_idx": { - "name": "error_issue_verifications_open_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_live_seen_idx": { - "name": "error_issues_org_live_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.live_activities": { - "name": "live_activities", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_id": { - "name": "device_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "activity_id": { - "name": "activity_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "push_token": { - "name": "push_token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ended_at": { - "name": "ended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ended_reason": { - "name": "ended_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "live_activities_device_incident_unique": { - "name": "live_activities_device_incident_unique", - "columns": [ - { - "expression": "device_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "live_activities_incident_idx": { - "name": "live_activities_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "granted_accounts_json": { - "name": "granted_accounts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reward_claimed_at": { - "name": "reward_claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reward_reserved_at": { - "name": "reward_reserved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0057_snapshot.json b/packages/db/drizzle/meta/0057_snapshot.json deleted file mode 100644 index b56e13df9..000000000 --- a/packages/db/drizzle/meta/0057_snapshot.json +++ /dev/null @@ -1,8847 +0,0 @@ -{ - "id": "5d7f9e42-079f-4b13-91d4-a0b63c019bdd", - "prevId": "4f35f45c-70a6-4c5d-8742-5e0339870156", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "hold_reason": { - "name": "hold_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "held_since": { - "name": "held_since", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_open_group_idx": { - "name": "alert_incidents_open_group_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "group_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"alert_incidents\".\"status\" = 'open'", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_triggered_idx": { - "name": "anomaly_incidents_org_status_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_open_detector_idx": { - "name": "anomaly_incidents_open_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"anomaly_incidents\".\"status\" = 'open'", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_account_dataset_zone_idx": { - "name": "cf_analytics_state_org_account_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "account_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "family_expires_at": { - "name": "family_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "live_activity_start_token": { - "name": "live_activity_start_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "opted_out_at": { - "name": "opted_out_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "namespaces_json": { - "name": "namespaces_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "environments_json": { - "name": "environments_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_pull_requests": { - "name": "error_issue_pull_requests", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repo_full_name": { - "name": "repo_full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "merge_commit_sha": { - "name": "merge_commit_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "link_source": { - "name": "link_source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "linked_by_actor_id": { - "name": "linked_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_pull_requests_issue_pr_idx": { - "name": "error_issue_pull_requests_issue_pr_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_repo_number_idx": { - "name": "error_issue_pull_requests_repo_number_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_issue_idx": { - "name": "error_issue_pull_requests_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_verifications": { - "name": "error_issue_verifications", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "pull_request_id": { - "name": "pull_request_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'waiting'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "verify_after": { - "name": "verify_after", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "baseline_versions_json": { - "name": "baseline_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "baseline_occurrence_count": { - "name": "baseline_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "baseline_rate_per_hour": { - "name": "baseline_rate_per_hour", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict_note": { - "name": "verdict_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_merge_occurrence_count": { - "name": "post_merge_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_verifications_due_idx": { - "name": "error_issue_verifications_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "verify_after", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_issue_idx": { - "name": "error_issue_verifications_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_open_idx": { - "name": "error_issue_verifications_open_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_live_seen_idx": { - "name": "error_issues_org_live_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigation_lens_runs": { - "name": "investigation_lens_runs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "lens_id": { - "name": "lens_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "ordinal": { - "name": "ordinal", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "claim": { - "name": "claim", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "progress_note": { - "name": "progress_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "tool_count": { - "name": "tool_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "elapsed_ms": { - "name": "elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "lens_name": { - "name": "lens_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lens_question": { - "name": "lens_question", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "deadline_hit": { - "name": "deadline_hit", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "hypothesis_json": { - "name": "hypothesis_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "evidence_json": { - "name": "evidence_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "mechanism": { - "name": "mechanism", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "self_doubt": { - "name": "self_doubt", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "suggested_actions_json": { - "name": "suggested_actions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reported_at": { - "name": "reported_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ranked_at": { - "name": "ranked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigation_lens_runs_lens_idx": { - "name": "investigation_lens_runs_lens_idx", - "columns": [ - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "lens_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigation_lens_runs_org_inv_idx": { - "name": "investigation_lens_runs_org_inv_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "investigation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "investigation_lens_runs_investigation_id_investigations_id_fk": { - "name": "investigation_lens_runs_investigation_id_investigations_id_fk", - "tableFrom": "investigation_lens_runs", - "tableTo": "investigations", - "columnsFrom": [ - "investigation_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_state": { - "name": "fanout_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "fanout_size": { - "name": "fanout_size", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "plan_json": { - "name": "plan_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "planner_model": { - "name": "planner_model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "planner_elapsed_ms": { - "name": "planner_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "validator_note": { - "name": "validator_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "validator_elapsed_ms": { - "name": "validator_elapsed_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "fanout_deadline_at": { - "name": "fanout_deadline_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "fanout_attempt": { - "name": "fanout_attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.live_activities": { - "name": "live_activities", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_id": { - "name": "device_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "activity_id": { - "name": "activity_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "push_token": { - "name": "push_token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ended_at": { - "name": "ended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ended_reason": { - "name": "ended_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "live_activities_device_incident_unique": { - "name": "live_activities_device_incident_unique", - "columns": [ - { - "expression": "device_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "live_activities_incident_idx": { - "name": "live_activities_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "granted_accounts_json": { - "name": "granted_accounts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reward_claimed_at": { - "name": "reward_claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reward_reserved_at": { - "name": "reward_reserved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0058_snapshot.json b/packages/db/drizzle/meta/0058_snapshot.json deleted file mode 100644 index 5467aec63..000000000 --- a/packages/db/drizzle/meta/0058_snapshot.json +++ /dev/null @@ -1,8511 +0,0 @@ -{ - "id": "05023a0b-d80d-4e35-a2ba-f042bb12470b", - "prevId": "5d7f9e42-079f-4b13-91d4-a0b63c019bdd", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "hold_reason": { - "name": "hold_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "held_since": { - "name": "held_since", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_open_group_idx": { - "name": "alert_incidents_open_group_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "group_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"alert_incidents\".\"status\" = 'open'", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_triggered_idx": { - "name": "anomaly_incidents_org_status_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_open_detector_idx": { - "name": "anomaly_incidents_open_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"anomaly_incidents\".\"status\" = 'open'", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_account_dataset_zone_idx": { - "name": "cf_analytics_state_org_account_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "account_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "family_expires_at": { - "name": "family_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "live_activity_start_token": { - "name": "live_activity_start_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "opted_out_at": { - "name": "opted_out_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "namespaces_json": { - "name": "namespaces_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "environments_json": { - "name": "environments_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_pull_requests": { - "name": "error_issue_pull_requests", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repo_full_name": { - "name": "repo_full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "merge_commit_sha": { - "name": "merge_commit_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "link_source": { - "name": "link_source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "linked_by_actor_id": { - "name": "linked_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_pull_requests_issue_pr_idx": { - "name": "error_issue_pull_requests_issue_pr_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_repo_number_idx": { - "name": "error_issue_pull_requests_repo_number_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_issue_idx": { - "name": "error_issue_pull_requests_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_verifications": { - "name": "error_issue_verifications", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "pull_request_id": { - "name": "pull_request_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'waiting'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "verify_after": { - "name": "verify_after", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "baseline_versions_json": { - "name": "baseline_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "baseline_occurrence_count": { - "name": "baseline_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "baseline_rate_per_hour": { - "name": "baseline_rate_per_hour", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict_note": { - "name": "verdict_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_merge_occurrence_count": { - "name": "post_merge_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_verifications_due_idx": { - "name": "error_issue_verifications_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "verify_after", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_issue_idx": { - "name": "error_issue_verifications_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_open_idx": { - "name": "error_issue_verifications_open_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_live_seen_idx": { - "name": "error_issues_org_live_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.live_activities": { - "name": "live_activities", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_id": { - "name": "device_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "activity_id": { - "name": "activity_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "push_token": { - "name": "push_token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ended_at": { - "name": "ended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ended_reason": { - "name": "ended_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "live_activities_device_incident_unique": { - "name": "live_activities_device_incident_unique", - "columns": [ - { - "expression": "device_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "live_activities_incident_idx": { - "name": "live_activities_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "granted_accounts_json": { - "name": "granted_accounts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reward_claimed_at": { - "name": "reward_claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reward_reserved_at": { - "name": "reward_reserved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0059_snapshot.json b/packages/db/drizzle/meta/0059_snapshot.json deleted file mode 100644 index 85aed38f6..000000000 --- a/packages/db/drizzle/meta/0059_snapshot.json +++ /dev/null @@ -1,8566 +0,0 @@ -{ - "id": "24e1da2d-418a-4012-a13f-d0a60b042c23", - "prevId": "05023a0b-d80d-4e35-a2ba-f042bb12470b", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "hold_reason": { - "name": "hold_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "held_since": { - "name": "held_since", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_open_group_idx": { - "name": "alert_incidents_open_group_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "group_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"alert_incidents\".\"status\" = 'open'", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_triggered_idx": { - "name": "anomaly_incidents_org_status_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_open_detector_idx": { - "name": "anomaly_incidents_open_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"anomaly_incidents\".\"status\" = 'open'", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_account_dataset_zone_idx": { - "name": "cf_analytics_state_org_account_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "account_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "family_expires_at": { - "name": "family_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "live_activity_start_token": { - "name": "live_activity_start_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "opted_out_at": { - "name": "opted_out_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "namespaces_json": { - "name": "namespaces_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "environments_json": { - "name": "environments_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_pull_requests": { - "name": "error_issue_pull_requests", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repo_full_name": { - "name": "repo_full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "merge_commit_sha": { - "name": "merge_commit_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "link_source": { - "name": "link_source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "linked_by_actor_id": { - "name": "linked_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_pull_requests_issue_pr_idx": { - "name": "error_issue_pull_requests_issue_pr_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_repo_number_idx": { - "name": "error_issue_pull_requests_repo_number_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_issue_idx": { - "name": "error_issue_pull_requests_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_verifications": { - "name": "error_issue_verifications", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "pull_request_id": { - "name": "pull_request_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'waiting'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "verify_after": { - "name": "verify_after", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "baseline_versions_json": { - "name": "baseline_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "baseline_occurrence_count": { - "name": "baseline_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "baseline_rate_per_hour": { - "name": "baseline_rate_per_hour", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict_note": { - "name": "verdict_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_merge_occurrence_count": { - "name": "post_merge_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_verifications_due_idx": { - "name": "error_issue_verifications_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "verify_after", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_issue_idx": { - "name": "error_issue_verifications_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_open_idx": { - "name": "error_issue_verifications_open_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_live_seen_idx": { - "name": "error_issues_org_live_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.live_activities": { - "name": "live_activities", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_id": { - "name": "device_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "activity_id": { - "name": "activity_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "push_token": { - "name": "push_token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ended_at": { - "name": "ended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ended_reason": { - "name": "ended_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "live_activities_device_incident_unique": { - "name": "live_activities_device_incident_unique", - "columns": [ - { - "expression": "device_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "live_activities_incident_idx": { - "name": "live_activities_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "granted_accounts_json": { - "name": "granted_accounts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reward_claimed_at": { - "name": "reward_claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reward_reserved_at": { - "name": "reward_reserved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_issue_receipts": { - "name": "planetscale_issue_receipts", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_id": { - "name": "event_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_issue_receipts_processed_at_idx": { - "name": "planetscale_issue_receipts_processed_at_idx", - "columns": [ - { - "expression": "processed_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "planetscale_issue_receipts_org_id_event_id_pk": { - "name": "planetscale_issue_receipts_org_id_event_id_pk", - "columns": [ - "org_id", - "event_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/0060_snapshot.json b/packages/db/drizzle/meta/0060_snapshot.json deleted file mode 100644 index a0311e4bd..000000000 --- a/packages/db/drizzle/meta/0060_snapshot.json +++ /dev/null @@ -1,8572 +0,0 @@ -{ - "id": "04f3891a-2e9e-42af-91bf-3cedd2117d2a", - "prevId": "24e1da2d-418a-4012-a13f-d0a60b042c23", - "version": "7", - "dialect": "postgresql", - "tables": { - "public.ai_triage_settings": { - "name": "ai_triage_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "max_runs_per_day": { - "name": "max_runs_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 20 - }, - "max_passes_per_day": { - "name": "max_passes_per_day", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 90 - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_delivery_events": { - "name": "alert_delivery_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_number": { - "name": "attempt_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "provider_message": { - "name": "provider_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "provider_reference": { - "name": "provider_reference", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "response_code": { - "name": "response_code", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_delivery_events_org_idx": { - "name": "alert_delivery_events_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_org_incident_idx": { - "name": "alert_delivery_events_org_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_due_idx": { - "name": "alert_delivery_events_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_claim_idx": { - "name": "alert_delivery_events_claim_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_delivery_events_delivery_attempt_idx": { - "name": "alert_delivery_events_delivery_attempt_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "attempt_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_destinations": { - "name": "alert_destinations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "config_json": { - "name": "config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_tested_at": { - "name": "last_tested_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_test_error": { - "name": "last_test_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_failures": { - "name": "consecutive_failures", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_failure_at": { - "name": "last_failure_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_destinations_org_idx": { - "name": "alert_destinations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_enabled_idx": { - "name": "alert_destinations_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_destinations_org_name_idx": { - "name": "alert_destinations_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_incidents": { - "name": "alert_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_key": { - "name": "incident_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_name": { - "name": "rule_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_delivered_event_type": { - "name": "last_delivered_event_type", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_notified_at": { - "name": "last_notified_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "hold_reason": { - "name": "hold_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "held_since": { - "name": "held_since", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_incidents_org_idx": { - "name": "alert_incidents_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_status_idx": { - "name": "alert_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_rule_idx": { - "name": "alert_incidents_org_rule_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_org_issue_idx": { - "name": "alert_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_incident_key_idx": { - "name": "alert_incidents_incident_key_idx", - "columns": [ - { - "expression": "incident_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_incidents_open_group_idx": { - "name": "alert_incidents_open_group_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "rule_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "group_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"alert_incidents\".\"status\" = 'open'", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_claims": { - "name": "alert_rule_claims", - "schema": "", - "columns": { - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_claims_org_idx": { - "name": "alert_rule_claims_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rule_states": { - "name": "alert_rule_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "rule_id": { - "name": "rule_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "group_key": { - "name": "group_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'__total__'" - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rule_states_org_idx": { - "name": "alert_rule_states_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "alert_rule_states_org_id_rule_id_group_key_pk": { - "name": "alert_rule_states_org_id_rule_id_group_key_pk", - "columns": [ - "org_id", - "rule_id", - "group_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.alert_rules": { - "name": "alert_rules", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "notification_template_json": { - "name": "notification_template_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_names_json": { - "name": "service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "exclude_service_names_json": { - "name": "exclude_service_names_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "environments_json": { - "name": "environments_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "tags_json": { - "name": "tags_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "comparator": { - "name": "comparator", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "threshold": { - "name": "threshold", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_upper": { - "name": "threshold_upper", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "window_minutes": { - "name": "window_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "minimum_sample_count": { - "name": "minimum_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_breaches_required": { - "name": "consecutive_breaches_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "consecutive_healthy_required": { - "name": "consecutive_healthy_required", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 2 - }, - "renotify_interval_minutes": { - "name": "renotify_interval_minutes", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 30 - }, - "apdex_threshold_ms": { - "name": "apdex_threshold_ms", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "query_builder_draft_json": { - "name": "query_builder_draft_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "raw_query_sql": { - "name": "raw_query_sql", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "group_by": { - "name": "group_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "query_spec_json": { - "name": "query_spec_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "reducer": { - "name": "reducer", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sample_count_strategy": { - "name": "sample_count_strategy", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "no_data_behavior": { - "name": "no_data_behavior", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_scheduled_at": { - "name": "last_scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "alert_rules_org_idx": { - "name": "alert_rules_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_enabled_idx": { - "name": "alert_rules_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "alert_rules_org_name_idx": { - "name": "alert_rules_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_settings": { - "name": "anomaly_detector_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "sensitivity": { - "name": "sensitivity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'normal'" - }, - "muted_signals_json": { - "name": "muted_signals_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "last_tick_at": { - "name": "last_tick_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_detector_states": { - "name": "anomaly_detector_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "consecutive_breaches": { - "name": "consecutive_breaches", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "consecutive_healthy": { - "name": "consecutive_healthy", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_status": { - "name": "last_status", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_value": { - "name": "last_value", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": false - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_incident_id": { - "name": "last_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_detector_states_open_incident_idx": { - "name": "anomaly_detector_states_open_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "open_incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"anomaly_detector_states\".\"open_incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_detector_states_evaluated_idx": { - "name": "anomaly_detector_states_evaluated_idx", - "columns": [ - { - "expression": "last_evaluated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "anomaly_detector_states_org_id_detector_key_pk": { - "name": "anomaly_detector_states_org_id_detector_key_pk", - "columns": [ - "org_id", - "detector_key" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.anomaly_incidents": { - "name": "anomaly_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "detector_key": { - "name": "detector_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "signal_type": { - "name": "signal_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "deployment_env": { - "name": "deployment_env", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "error_issue_id": { - "name": "error_issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "opened_value": { - "name": "opened_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_median": { - "name": "baseline_median", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "baseline_sigma": { - "name": "baseline_sigma", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "threshold_value": { - "name": "threshold_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_observed_value": { - "name": "last_observed_value", - "type": "double precision", - "primaryKey": false, - "notNull": true - }, - "last_sample_count": { - "name": "last_sample_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolve_reason": { - "name": "resolve_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "triage_status": { - "name": "triage_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprints_json": { - "name": "fingerprints_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "reopen_count": { - "name": "reopen_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "last_reopened_at": { - "name": "last_reopened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "anomaly_incidents_org_status_triggered_idx": { - "name": "anomaly_incidents_org_status_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_triggered_idx": { - "name": "anomaly_incidents_org_triggered_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_detector_idx": { - "name": "anomaly_incidents_org_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_org_issue_idx": { - "name": "anomaly_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "error_issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "anomaly_incidents_open_detector_idx": { - "name": "anomaly_incidents_open_detector_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "detector_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"anomaly_incidents\".\"status\" = 'open'", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.api_keys": { - "name": "api_keys", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "description": { - "name": "description", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "key_hash": { - "name": "key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "key_prefix": { - "name": "key_prefix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked": { - "name": "revoked", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_used_at": { - "name": "last_used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "metadata_json": { - "name": "metadata_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'standard'" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_by_email": { - "name": "created_by_email", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "api_keys_key_hash_unique": { - "name": "api_keys_key_hash_unique", - "columns": [ - { - "expression": "key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "api_keys_org_id_idx": { - "name": "api_keys_org_id_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_analytics_state": { - "name": "cloudflare_analytics_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_id": { - "name": "zone_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "backfill_at": { - "name": "backfill_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "settings_json": { - "name": "settings_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "settings_fetched_at": { - "name": "settings_fetched_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "quantiles_available": { - "name": "quantiles_available", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "discovered_at": { - "name": "discovered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "live_scripts_json": { - "name": "live_scripts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cf_analytics_state_org_account_dataset_zone_idx": { - "name": "cf_analytics_state_org_account_dataset_zone_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "account_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "zone_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cf_analytics_state_org_idx": { - "name": "cf_analytics_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_hyperdrive_configs": { - "name": "cloudflare_hyperdrive_configs", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_id": { - "name": "account_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "config_id": { - "name": "config_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_host": { - "name": "origin_host", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "origin_port": { - "name": "origin_port", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "origin_scheme": { - "name": "origin_scheme", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_database": { - "name": "origin_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "origin_user": { - "name": "origin_user", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_hyperdrive_configs_org_config_idx": { - "name": "cloudflare_hyperdrive_configs_org_config_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "config_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_hyperdrive_configs_org_idx": { - "name": "cloudflare_hyperdrive_configs_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cloudflare_logpush_connectors": { - "name": "cloudflare_logpush_connectors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "zone_name": { - "name": "zone_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'http_requests'" - }, - "secret_ciphertext": { - "name": "secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_iv": { - "name": "secret_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_tag": { - "name": "secret_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "secret_hash": { - "name": "secret_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_received_at": { - "name": "last_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "secret_rotated_at": { - "name": "secret_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cloudflare_logpush_connectors_org_idx": { - "name": "cloudflare_logpush_connectors_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_org_enabled_idx": { - "name": "cloudflare_logpush_connectors_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cloudflare_logpush_connectors_secret_hash_unique": { - "name": "cloudflare_logpush_connectors_secret_hash_unique", - "columns": [ - { - "expression": "secret_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.cli_device_authorizations": { - "name": "cli_device_authorizations", - "schema": "", - "columns": { - "device_code_hash": { - "name": "device_code_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_code_hash": { - "name": "user_code_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "cli_device_authorizations_user_code_unique": { - "name": "cli_device_authorizations_user_code_unique", - "columns": [ - { - "expression": "user_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "cli_device_authorizations_expires_idx": { - "name": "cli_device_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_authorizations": { - "name": "mcp_oauth_authorizations", - "schema": "", - "columns": { - "request_id_hash": { - "name": "request_id_hash", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "code_challenge": { - "name": "code_challenge", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "authorization_code_hash": { - "name": "authorization_code_hash", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_org_id": { - "name": "approved_org_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_user_id": { - "name": "approved_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_roles": { - "name": "approved_roles", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "approved_user_email": { - "name": "approved_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "approved_at": { - "name": "approved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "denied_at": { - "name": "denied_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "used_at": { - "name": "used_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mcp_oauth_authorizations_code_unique": { - "name": "mcp_oauth_authorizations_code_unique", - "columns": [ - { - "expression": "authorization_code_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_authorizations_expires_idx": { - "name": "mcp_oauth_authorizations_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_clients": { - "name": "mcp_oauth_clients", - "schema": "", - "columns": { - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "client_name": { - "name": "client_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uris": { - "name": "redirect_uris", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "client_uri": { - "name": "client_uri", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mcp_oauth_refresh_tokens": { - "name": "mcp_oauth_refresh_tokens", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "family_id": { - "name": "family_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "client_id": { - "name": "client_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "resource": { - "name": "resource", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scopes": { - "name": "scopes", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "roles": { - "name": "roles", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "user_email": { - "name": "user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "access_key_id": { - "name": "access_key_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "replaced_by_id": { - "name": "replaced_by_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "family_expires_at": { - "name": "family_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "mcp_oauth_refresh_tokens_hash_unique": { - "name": "mcp_oauth_refresh_tokens_hash_unique", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_family_idx": { - "name": "mcp_oauth_refresh_tokens_family_idx", - "columns": [ - { - "expression": "family_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mcp_oauth_refresh_tokens_expires_idx": { - "name": "mcp_oauth_refresh_tokens_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.mobile_devices": { - "name": "mobile_devices", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "platform": { - "name": "platform", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token": { - "name": "token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "environment": { - "name": "environment", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "bundle_id": { - "name": "bundle_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "app_version": { - "name": "app_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "live_activity_start_token": { - "name": "live_activity_start_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "device_name": { - "name": "device_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "preferences": { - "name": "preferences", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "disabled_at": { - "name": "disabled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "disabled_reason": { - "name": "disabled_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_pushed_at": { - "name": "last_pushed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "mobile_devices_org_platform_token_unique": { - "name": "mobile_devices_org_platform_token_unique", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "platform", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "token", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_org_idx": { - "name": "mobile_devices_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "mobile_devices_user_idx": { - "name": "mobile_devices_user_idx", - "columns": [ - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_shares": { - "name": "dashboard_shares", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "widget_id": { - "name": "widget_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "mode": { - "name": "mode", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_hash": { - "name": "token_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_ciphertext": { - "name": "token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_iv": { - "name": "token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_tag": { - "name": "token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "token_suffix": { - "name": "token_suffix", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "dashboard_shares_token_hash_unq": { - "name": "dashboard_shares_token_hash_unq", - "columns": [ - { - "expression": "token_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_live_unq": { - "name": "dashboard_shares_live_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "coalesce(widget_id, '')", - "asc": true, - "isExpression": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "revoked_at is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_org_dashboard_idx": { - "name": "dashboard_shares_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_shares_id_idx": { - "name": "dashboard_shares_id_idx", - "columns": [ - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "dashboard_shares_dashboard_fk": { - "name": "dashboard_shares_dashboard_fk", - "tableFrom": "dashboard_shares", - "tableTo": "dashboards", - "columnsFrom": [ - "org_id", - "dashboard_id" - ], - "columnsTo": [ - "org_id", - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": { - "dashboard_shares_org_id_id_pk": { - "name": "dashboard_shares_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboard_versions": { - "name": "dashboard_versions", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dashboard_id": { - "name": "dashboard_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version_number": { - "name": "version_number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "change_kind": { - "name": "change_kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "change_summary": { - "name": "change_summary", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "source_version_id": { - "name": "source_version_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "dashboard_versions_org_dashboard_idx": { - "name": "dashboard_versions_org_dashboard_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboard_versions_org_dashboard_version_unq": { - "name": "dashboard_versions_org_dashboard_version_unq", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dashboard_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "version_number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboard_versions_org_id_id_pk": { - "name": "dashboard_versions_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.dashboards": { - "name": "dashboards", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "id": { - "name": "id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "version": { - "name": "version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - } - }, - "indexes": { - "dashboards_org_updated_idx": { - "name": "dashboards_org_updated_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "updated_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "dashboards_org_name_idx": { - "name": "dashboards_org_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "dashboards_org_id_id_pk": { - "name": "dashboards_org_id_id_pk", - "columns": [ - "org_id", - "id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.digest_subscriptions": { - "name": "digest_subscriptions", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "opted_out_at": { - "name": "opted_out_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "day_of_week": { - "name": "day_of_week", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "timezone": { - "name": "timezone", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'UTC'" - }, - "namespaces_json": { - "name": "namespaces_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "environments_json": { - "name": "environments_json", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'[]'" - }, - "last_sent_at": { - "name": "last_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_attempted_at": { - "name": "last_attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "digest_subscriptions_org_user_idx": { - "name": "digest_subscriptions_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "digest_subscriptions_org_enabled_idx": { - "name": "digest_subscriptions_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.actors": { - "name": "actors", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "agent_name": { - "name": "agent_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "capabilities_json": { - "name": "capabilities_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_active_at": { - "name": "last_active_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "actors_org_user_idx": { - "name": "actors_org_user_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "user_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_agent_name_idx": { - "name": "actors_org_agent_name_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "agent_name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "actors_org_type_idx": { - "name": "actors_org_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_fingerprint_candidates": { - "name": "error_fingerprint_candidates", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_versions_json": { - "name": "service_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_fingerprint_candidates_last_seen_idx": { - "name": "error_fingerprint_candidates_last_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_fingerprint_candidates_org_id_fingerprint_hash_pk": { - "name": "error_fingerprint_candidates_org_id_fingerprint_hash_pk", - "columns": [ - "org_id", - "fingerprint_hash" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_incidents": { - "name": "error_incidents", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "first_triggered_at": { - "name": "first_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_triggered_at": { - "name": "last_triggered_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_incidents_org_issue_idx": { - "name": "error_incidents_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_incidents_org_status_idx": { - "name": "error_incidents_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_triggered_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_events": { - "name": "error_issue_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_id": { - "name": "actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "type": { - "name": "type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "from_state": { - "name": "from_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "to_state": { - "name": "to_state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_events_issue_idx": { - "name": "error_issue_events_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_actor_idx": { - "name": "error_issue_events_actor_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_events_type_idx": { - "name": "error_issue_events_type_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_pull_requests": { - "name": "error_issue_pull_requests", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repo_full_name": { - "name": "repo_full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "merge_commit_sha": { - "name": "merge_commit_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "link_source": { - "name": "link_source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "linked_by_actor_id": { - "name": "linked_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_pull_requests_issue_pr_idx": { - "name": "error_issue_pull_requests_issue_pr_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_repo_number_idx": { - "name": "error_issue_pull_requests_repo_number_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "repo_full_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "number", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_pull_requests_issue_idx": { - "name": "error_issue_pull_requests_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_states": { - "name": "error_issue_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_observed_occurrence_at": { - "name": "last_observed_occurrence_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_evaluated_at": { - "name": "last_evaluated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "open_incident_id": { - "name": "open_incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "error_issue_states_org_id_issue_id_pk": { - "name": "error_issue_states_org_id_issue_id_pk", - "columns": [ - "org_id", - "issue_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issue_verifications": { - "name": "error_issue_verifications", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "pull_request_id": { - "name": "pull_request_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'waiting'" - }, - "merged_at": { - "name": "merged_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "verify_after": { - "name": "verify_after", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "baseline_versions_json": { - "name": "baseline_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "baseline_occurrence_count": { - "name": "baseline_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "baseline_rate_per_hour": { - "name": "baseline_rate_per_hour", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict": { - "name": "verdict", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "verdict_note": { - "name": "verdict_note", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "post_merge_occurrence_count": { - "name": "post_merge_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "attempt": { - "name": "attempt", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issue_verifications_due_idx": { - "name": "error_issue_verifications_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "verify_after", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_issue_idx": { - "name": "error_issue_verifications_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issue_verifications_open_idx": { - "name": "error_issue_verifications_open_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"error_issue_verifications\".\"status\" in ('waiting', 'running')", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_issues": { - "name": "error_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'error'" - }, - "source_ref_json": { - "name": "source_ref_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "fingerprint_hash": { - "name": "fingerprint_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "fingerprint_version": { - "name": "fingerprint_version", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_type": { - "name": "exception_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "exception_message": { - "name": "exception_message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error_label": { - "name": "error_label", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "top_frame": { - "name": "top_frame", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_state": { - "name": "workflow_state", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'triage'" - }, - "priority": { - "name": "priority", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 3 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "severity_source": { - "name": "severity_source", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "assigned_actor_id": { - "name": "assigned_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_holder_actor_id": { - "name": "lease_holder_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "lease_expires_at": { - "name": "lease_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "notes": { - "name": "notes", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "first_seen_at": { - "name": "first_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "last_seen_at": { - "name": "last_seen_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "occurrence_count": { - "name": "occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "resolved_by_actor_id": { - "name": "resolved_by_actor_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_resolved_at": { - "name": "last_resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_regressed_at": { - "name": "last_regressed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "regression_count": { - "name": "regression_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "seen_versions_json": { - "name": "seen_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "resolved_versions_json": { - "name": "resolved_versions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "snooze_until": { - "name": "snooze_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "archived_at": { - "name": "archived_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_issues_org_fp_idx": { - "name": "error_issues_org_fp_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_workflow_idx": { - "name": "error_issues_org_workflow_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "workflow_state", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_severity_idx": { - "name": "error_issues_org_severity_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "severity", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_live_seen_idx": { - "name": "error_issues_org_live_seen_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "last_seen_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_fp_version_idx": { - "name": "error_issues_org_fp_version_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "fingerprint_version", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_assignee_idx": { - "name": "error_issues_org_assignee_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "assigned_actor_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_lease_expiry_idx": { - "name": "error_issues_lease_expiry_idx", - "columns": [ - { - "expression": "lease_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_issues_org_archived_idx": { - "name": "error_issues_org_archived_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "archived_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "where": "\"error_issues\".\"archived_at\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_deliveries": { - "name": "error_notification_deliveries", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "destination_id": { - "name": "destination_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "delivery_key": { - "name": "delivery_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "attempt_count": { - "name": "attempt_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "scheduled_at": { - "name": "scheduled_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "claimed_at": { - "name": "claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "claimed_by": { - "name": "claimed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "attempted_at": { - "name": "attempted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_notification_deliveries_due_idx": { - "name": "error_notification_deliveries_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "scheduled_at", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_org_idx": { - "name": "error_notification_deliveries_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "error_notification_deliveries_key_destination_idx": { - "name": "error_notification_deliveries_key_destination_idx", - "columns": [ - { - "expression": "delivery_key", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "destination_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_notification_policies": { - "name": "error_notification_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "destination_ids_json": { - "name": "destination_ids_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "notify_on_first_seen": { - "name": "notify_on_first_seen", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_regression": { - "name": "notify_on_regression", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "notify_on_resolve": { - "name": "notify_on_resolve", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_in_review": { - "name": "notify_on_transition_in_review", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_transition_done": { - "name": "notify_on_transition_done", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "notify_on_claim": { - "name": "notify_on_claim", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "min_occurrence_count": { - "name": "min_occurrence_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'warning'" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.error_tick_states": { - "name": "error_tick_states", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "processed_through": { - "name": "processed_through", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "bootstrap_completed": { - "name": "bootstrap_completed", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "claim_token": { - "name": "claim_token", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "claim_expires_at": { - "name": "claim_expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "error_tick_states_claim_idx": { - "name": "error_tick_states_claim_idx", - "columns": [ - { - "expression": "claim_expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalation_policies": { - "name": "issue_escalation_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "rules_json": { - "name": "rules_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.issue_escalations": { - "name": "issue_escalations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "reason": { - "name": "reason", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "run_id": { - "name": "run_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "investigation_id": { - "name": "investigation_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'{}'::jsonb" - }, - "delivery_results_json": { - "name": "delivery_results_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true, - "default": "'[]'::jsonb" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'queued'" - }, - "attempts": { - "name": "attempts", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "dedupe_key": { - "name": "dedupe_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "issue_escalations_dedupe_idx": { - "name": "issue_escalations_dedupe_idx", - "columns": [ - { - "expression": "dedupe_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_due_idx": { - "name": "issue_escalations_due_idx", - "columns": [ - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "issue_escalations_org_issue_idx": { - "name": "issue_escalations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.investigations": { - "name": "investigations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'investigating'" - }, - "seeded_by": { - "name": "seeded_by", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'user'" - }, - "subject_json": { - "name": "subject_json", - "type": "jsonb", - "primaryKey": false, - "notNull": true - }, - "snapshot_json": { - "name": "snapshot_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "incident_kind": { - "name": "incident_kind", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "issue_id": { - "name": "issue_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "report_json": { - "name": "report_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "progress_json": { - "name": "progress_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "severity": { - "name": "severity", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "confidence": { - "name": "confidence", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "model": { - "name": "model", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "input_tokens": { - "name": "input_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "output_tokens": { - "name": "output_tokens", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "autonomous_turns": { - "name": "autonomous_turns", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "diagnosed_at": { - "name": "diagnosed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "investigations_incident_idx": { - "name": "investigations_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_kind", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"investigations\".\"incident_id\" is not null", - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_created_idx": { - "name": "investigations_org_created_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "created_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_issue_idx": { - "name": "investigations_org_issue_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "issue_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "investigations_org_status_idx": { - "name": "investigations_org_status_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "status", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.live_activities": { - "name": "live_activities", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "device_id": { - "name": "device_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "incident_id": { - "name": "incident_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "activity_id": { - "name": "activity_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "push_token": { - "name": "push_token", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ended_at": { - "name": "ended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "ended_reason": { - "name": "ended_reason", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "live_activities_device_incident_unique": { - "name": "live_activities_device_incident_unique", - "columns": [ - { - "expression": "device_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "live_activities_incident_idx": { - "name": "live_activities_incident_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "incident_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_auth_states": { - "name": "oauth_auth_states", - "schema": "", - "columns": { - "state": { - "name": "state", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "initiated_by_user_id": { - "name": "initiated_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "redirect_uri": { - "name": "redirect_uri", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "return_to": { - "name": "return_to", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "code_verifier": { - "name": "code_verifier", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_auth_states_expires_idx": { - "name": "oauth_auth_states_expires_idx", - "columns": [ - { - "expression": "expires_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.oauth_connections": { - "name": "oauth_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_id": { - "name": "external_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_user_email": { - "name": "external_user_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_account_name": { - "name": "external_account_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "granted_accounts_json": { - "name": "granted_accounts_json", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "access_token_ciphertext": { - "name": "access_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_iv": { - "name": "access_token_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "access_token_tag": { - "name": "access_token_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "refresh_token_ciphertext": { - "name": "refresh_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_iv": { - "name": "refresh_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "refresh_token_tag": { - "name": "refresh_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "expires_at": { - "name": "expires_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "oauth_connections_org_provider_idx": { - "name": "oauth_connections_org_provider_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "oauth_connections_org_idx": { - "name": "oauth_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_onboarding_state": { - "name": "org_onboarding_state", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "user_id": { - "name": "user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "email": { - "name": "email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "role": { - "name": "role", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "demo_data_requested": { - "name": "demo_data_requested", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "onboarding_completed_at": { - "name": "onboarding_completed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "checklist_dismissed_at": { - "name": "checklist_dismissed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "first_data_received_at": { - "name": "first_data_received_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "welcome_email_sent_at": { - "name": "welcome_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "connect_nudge_email_sent_at": { - "name": "connect_nudge_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "stalled_email_sent_at": { - "name": "stalled_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "activation_email_sent_at": { - "name": "activation_email_sent_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reward_claimed_at": { - "name": "reward_claimed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "reward_reserved_at": { - "name": "reward_reserved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_attribute_mappings": { - "name": "org_ingest_attribute_mappings", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_context": { - "name": "source_context", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_key": { - "name": "target_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "operation": { - "name": "operation", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": { - "org_ingest_attribute_mappings_org_idx": { - "name": "org_ingest_attribute_mappings_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_recommendation_issues": { - "name": "org_recommendation_issues", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "number": { - "name": "number", - "type": "integer", - "primaryKey": false, - "notNull": true - }, - "recommendation_key": { - "name": "recommendation_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source_key": { - "name": "source_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "canonical_key": { - "name": "canonical_key", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'open'" - }, - "usage_count": { - "name": "usage_count", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 0 - }, - "opened_at": { - "name": "opened_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "resolved_at": { - "name": "resolved_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "org_recommendation_issues_org_idx": { - "name": "org_recommendation_issues_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_recommendation_issues_org_key_idx": { - "name": "org_recommendation_issues_org_key_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "recommendation_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_keys": { - "name": "org_ingest_keys", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key": { - "name": "public_key", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_key_hash": { - "name": "public_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_ciphertext": { - "name": "private_key_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_iv": { - "name": "private_key_iv", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_tag": { - "name": "private_key_tag", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "private_key_hash": { - "name": "private_key_hash", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "public_rotated_at": { - "name": "public_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "private_rotated_at": { - "name": "private_rotated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "org_ingest_keys_public_key_unique": { - "name": "org_ingest_keys_public_key_unique", - "columns": [ - { - "expression": "public_key", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_public_key_hash_unique": { - "name": "org_ingest_keys_public_key_hash_unique", - "columns": [ - { - "expression": "public_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "org_ingest_keys_private_key_hash_unique": { - "name": "org_ingest_keys_private_key_hash_unique", - "columns": [ - { - "expression": "private_key_hash", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_ingest_keys_org_id_pk": { - "name": "org_ingest_keys_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_ingest_sampling_policies": { - "name": "org_ingest_sampling_policies", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "trace_sample_ratio": { - "name": "trace_sample_ratio", - "type": "double precision", - "primaryKey": false, - "notNull": true, - "default": 1 - }, - "always_keep_error_spans": { - "name": "always_keep_error_spans", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "always_keep_slow_spans_ms": { - "name": "always_keep_slow_spans_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true, - "default": "now()" - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_settings": { - "name": "org_clickhouse_settings", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_url": { - "name": "ch_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_user": { - "name": "ch_user", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ch_password_ciphertext": { - "name": "ch_password_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_iv": { - "name": "ch_password_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_password_tag": { - "name": "ch_password_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "ch_database": { - "name": "ch_database", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "last_sync_at": { - "name": "last_sync_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "schema_version": { - "name": "schema_version", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_by": { - "name": "created_by", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "updated_by": { - "name": "updated_by", - "type": "text", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_settings_org_id_pk": { - "name": "org_clickhouse_settings_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.org_clickhouse_schema_apply_runs": { - "name": "org_clickhouse_schema_apply_runs", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "workflow_instance_id": { - "name": "workflow_instance_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "phase": { - "name": "phase", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "current_migration": { - "name": "current_migration", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_total": { - "name": "steps_total", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "steps_done": { - "name": "steps_done", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "applied_versions": { - "name": "applied_versions", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "skipped": { - "name": "skipped", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "error_message": { - "name": "error_message", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "started_at": { - "name": "started_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "finished_at": { - "name": "finished_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": {}, - "foreignKeys": {}, - "compositePrimaryKeys": { - "org_clickhouse_schema_apply_runs_org_id_pk": { - "name": "org_clickhouse_schema_apply_runs_org_id_pk", - "columns": [ - "org_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_connections": { - "name": "planetscale_connections", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "ps_organization": { - "name": "ps_organization", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "connected_by_user_id": { - "name": "connected_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "scrape_target_id": { - "name": "scrape_target_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_ciphertext": { - "name": "webhook_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_iv": { - "name": "webhook_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "webhook_secret_tag": { - "name": "webhook_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "detected_permissions_json": { - "name": "detected_permissions_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "last_inventory_at": { - "name": "last_inventory_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_inventory_error": { - "name": "last_inventory_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_connections_org_idx": { - "name": "planetscale_connections_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_databases": { - "name": "planetscale_databases", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "kind": { - "name": "kind", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'mysql'" - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "region": { - "name": "region", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "plan": { - "name": "plan", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "branches_json": { - "name": "branches_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "deleted_at": { - "name": "deleted_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_databases_org_db_idx": { - "name": "planetscale_databases_org_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_databases_org_idx": { - "name": "planetscale_databases_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_events": { - "name": "planetscale_events", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "database_name": { - "name": "database_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "branch_name": { - "name": "branch_name", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "category": { - "name": "category", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_type": { - "name": "event_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "state": { - "name": "state", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "external_id": { - "name": "external_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "title": { - "name": "title", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "source": { - "name": "source", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "actor_login": { - "name": "actor_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "payload_json": { - "name": "payload_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "occurred_at": { - "name": "occurred_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_events_dedupe_idx": { - "name": "planetscale_events_dedupe_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "event_type", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_db_time_idx": { - "name": "planetscale_events_org_db_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_name", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_events_org_time_idx": { - "name": "planetscale_events_org_time_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "occurred_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_issue_receipts": { - "name": "planetscale_issue_receipts", - "schema": "", - "columns": { - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "event_id": { - "name": "event_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "processed_at": { - "name": "processed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_issue_receipts_processed_at_idx": { - "name": "planetscale_issue_receipts_processed_at_idx", - "columns": [ - { - "expression": "processed_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": { - "planetscale_issue_receipts_org_id_event_id_pk": { - "name": "planetscale_issue_receipts_org_id_event_id_pk", - "columns": [ - "org_id", - "event_id" - ] - } - }, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.planetscale_poll_state": { - "name": "planetscale_poll_state", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "dataset": { - "name": "dataset", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "database_id": { - "name": "database_id", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "watermark_at": { - "name": "watermark_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_success_at": { - "name": "last_success_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_error": { - "name": "last_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "last_error_at": { - "name": "last_error_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "lease_until": { - "name": "lease_until", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "planetscale_poll_state_org_dataset_db_idx": { - "name": "planetscale_poll_state_org_dataset_db_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "dataset", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "database_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "planetscale_poll_state_org_idx": { - "name": "planetscale_poll_state_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_target_checks": { - "name": "scrape_target_checks", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "integer", - "primaryKey": true, - "notNull": true, - "identity": { - "type": "byDefault", - "name": "scrape_target_checks_id_seq", - "schema": "public", - "increment": "1", - "startWith": "1", - "minValue": "1", - "maxValue": "2147483647", - "cache": "1", - "cycle": false - } - }, - "target_id": { - "name": "target_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sub_target_key": { - "name": "sub_target_key", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "''" - }, - "checked_at": { - "name": "checked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "error": { - "name": "error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "duration_ms": { - "name": "duration_ms", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_scraped": { - "name": "samples_scraped", - "type": "integer", - "primaryKey": false, - "notNull": false - }, - "samples_post_relabel": { - "name": "samples_post_relabel", - "type": "integer", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "scrape_target_checks_target_checked_idx": { - "name": "scrape_target_checks_target_checked_idx", - "columns": [ - { - "expression": "target_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "checked_at", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": { - "scrape_target_checks_target_id_scrape_targets_id_fk": { - "name": "scrape_target_checks_target_id_scrape_targets_id_fk", - "tableFrom": "scrape_target_checks", - "tableTo": "scrape_targets", - "columnsFrom": [ - "target_id" - ], - "columnsTo": [ - "id" - ], - "onDelete": "cascade", - "onUpdate": "no action" - } - }, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.scrape_targets": { - "name": "scrape_targets", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "service_name": { - "name": "service_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "url": { - "name": "url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "target_type": { - "name": "target_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'prometheus'" - }, - "discovery_config_json": { - "name": "discovery_config_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "scrape_interval_seconds": { - "name": "scrape_interval_seconds", - "type": "integer", - "primaryKey": false, - "notNull": true, - "default": 15 - }, - "labels_json": { - "name": "labels_json", - "type": "jsonb", - "primaryKey": false, - "notNull": false - }, - "auth_type": { - "name": "auth_type", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'none'" - }, - "managed_by": { - "name": "managed_by", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_ciphertext": { - "name": "auth_credentials_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_iv": { - "name": "auth_credentials_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "auth_credentials_tag": { - "name": "auth_credentials_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "enabled": { - "name": "enabled", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "last_scrape_at": { - "name": "last_scrape_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_scrape_error": { - "name": "last_scrape_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "scrape_targets_org_idx": { - "name": "scrape_targets_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "scrape_targets_org_enabled_idx": { - "name": "scrape_targets_org_enabled_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "enabled", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.slack_workspaces": { - "name": "slack_workspaces", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_id": { - "name": "team_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "team_name": { - "name": "team_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_user_id": { - "name": "bot_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "scope": { - "name": "scope", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_ciphertext": { - "name": "bot_token_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_iv": { - "name": "bot_token_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "bot_token_tag": { - "name": "bot_token_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_id": { - "name": "api_key_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_ciphertext": { - "name": "api_key_secret_ciphertext", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_iv": { - "name": "api_key_secret_iv", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "api_key_secret_tag": { - "name": "api_key_secret_tag", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "revoked_at": { - "name": "revoked_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "revoked_reason": { - "name": "revoked_reason", - "type": "text", - "primaryKey": false, - "notNull": false - } - }, - "indexes": { - "slack_workspaces_team_id_idx": { - "name": "slack_workspaces_team_id_idx", - "columns": [ - { - "expression": "team_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_org_idx": { - "name": "slack_workspaces_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "slack_workspaces_active_org_idx": { - "name": "slack_workspaces_active_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "where": "\"slack_workspaces\".\"revoked_at\" IS NULL", - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_commits": { - "name": "vcs_commits", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "sha": { - "name": "sha", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "message": { - "name": "message", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "author_name": { - "name": "author_name", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_email": { - "name": "author_email", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_login": { - "name": "author_login", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "author_avatar_url": { - "name": "author_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "authored_at": { - "name": "authored_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "committed_at": { - "name": "committed_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_commits_repo_sha_idx": { - "name": "vcs_commits_repo_sha_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_commits_org_sha_idx": { - "name": "vcs_commits_org_sha_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "sha", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_installations": { - "name": "vcs_installations", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_installation_id": { - "name": "external_installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_login": { - "name": "account_login", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_type": { - "name": "account_type", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_account_id": { - "name": "external_account_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "account_avatar_url": { - "name": "account_avatar_url", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "repository_selection": { - "name": "repository_selection", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'all'" - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "suspended_at": { - "name": "suspended_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "installed_by_user_id": { - "name": "installed_by_user_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_installations_provider_external_idx": { - "name": "vcs_installations_provider_external_idx", - "columns": [ - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_installations_org_idx": { - "name": "vcs_installations_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repositories": { - "name": "vcs_repositories", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "installation_id": { - "name": "installation_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "external_repo_id": { - "name": "external_repo_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "owner": { - "name": "owner", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "full_name": { - "name": "full_name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "default_branch": { - "name": "default_branch", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'main'" - }, - "tracked_branch": { - "name": "tracked_branch", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "html_url": { - "name": "html_url", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_private": { - "name": "is_private", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": true - }, - "is_archived": { - "name": "is_archived", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "status": { - "name": "status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'active'" - }, - "sync_status": { - "name": "sync_status", - "type": "text", - "primaryKey": false, - "notNull": true, - "default": "'pending'" - }, - "last_synced_at": { - "name": "last_synced_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": false - }, - "last_sync_error": { - "name": "last_sync_error", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repositories_org_repo_idx": { - "name": "vcs_repositories_org_repo_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "provider", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "external_repo_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_org_idx": { - "name": "vcs_repositories_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repositories_installation_idx": { - "name": "vcs_repositories_installation_idx", - "columns": [ - { - "expression": "installation_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - }, - "public.vcs_repository_branches": { - "name": "vcs_repository_branches", - "schema": "", - "columns": { - "id": { - "name": "id", - "type": "text", - "primaryKey": true, - "notNull": true - }, - "org_id": { - "name": "org_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "provider": { - "name": "provider", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "repository_id": { - "name": "repository_id", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "name": { - "name": "name", - "type": "text", - "primaryKey": false, - "notNull": true - }, - "is_default": { - "name": "is_default", - "type": "boolean", - "primaryKey": false, - "notNull": true, - "default": false - }, - "head_sha": { - "name": "head_sha", - "type": "text", - "primaryKey": false, - "notNull": false - }, - "created_at": { - "name": "created_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - }, - "updated_at": { - "name": "updated_at", - "type": "timestamp with time zone", - "primaryKey": false, - "notNull": true - } - }, - "indexes": { - "vcs_repository_branches_repo_name_idx": { - "name": "vcs_repository_branches_repo_name_idx", - "columns": [ - { - "expression": "repository_id", - "isExpression": false, - "asc": true, - "nulls": "last" - }, - { - "expression": "name", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": true, - "concurrently": false, - "method": "btree", - "with": {} - }, - "vcs_repository_branches_org_idx": { - "name": "vcs_repository_branches_org_idx", - "columns": [ - { - "expression": "org_id", - "isExpression": false, - "asc": true, - "nulls": "last" - } - ], - "isUnique": false, - "concurrently": false, - "method": "btree", - "with": {} - } - }, - "foreignKeys": {}, - "compositePrimaryKeys": {}, - "uniqueConstraints": {}, - "policies": {}, - "checkConstraints": {}, - "isRLSEnabled": false - } - }, - "enums": {}, - "schemas": {}, - "sequences": {}, - "roles": {}, - "policies": {}, - "views": {}, - "_meta": { - "columns": {}, - "schemas": {}, - "tables": {} - } -} \ No newline at end of file diff --git a/packages/db/drizzle/meta/_journal.json b/packages/db/drizzle/meta/_journal.json deleted file mode 100644 index 305b76372..000000000 --- a/packages/db/drizzle/meta/_journal.json +++ /dev/null @@ -1,426 +0,0 @@ -{ - "version": "7", - "dialect": "postgresql", - "entries": [ - { - "idx": 0, - "version": "7", - "when": 1781306960498, - "tag": "0000_windy_raza", - "breakpoints": true - }, - { - "idx": 1, - "version": "7", - "when": 1782245542758, - "tag": "0001_naive_scalphunter", - "breakpoints": true - }, - { - "idx": 2, - "version": "7", - "when": 1782656894999, - "tag": "0002_bizarre_triathlon", - "breakpoints": true - }, - { - "idx": 3, - "version": "7", - "when": 1782992101248, - "tag": "0003_backfill_github_commit_avatars", - "breakpoints": true - }, - { - "idx": 4, - "version": "7", - "when": 1783200000000, - "tag": "0004_premium_korg", - "breakpoints": true - }, - { - "idx": 5, - "version": "7", - "when": 1783200001000, - "tag": "0005_loud_pyro", - "breakpoints": true - }, - { - "idx": 6, - "version": "7", - "when": 1783200002000, - "tag": "0006_natural_marvel_apes", - "breakpoints": true - }, - { - "idx": 7, - "version": "7", - "when": 1783200003000, - "tag": "0007_slippery_winter_soldier", - "breakpoints": true - }, - { - "idx": 8, - "version": "7", - "when": 1783200004000, - "tag": "0008_elite_butterfly", - "breakpoints": true - }, - { - "idx": 9, - "version": "7", - "when": 1783200005000, - "tag": "0009_electric_publication", - "breakpoints": true - }, - { - "idx": 10, - "version": "7", - "when": 1783377967610, - "tag": "0010_huge_dexter_bennett", - "breakpoints": true - }, - { - "idx": 11, - "version": "7", - "when": 1783377967700, - "tag": "0011_electric_publication_wave1", - "breakpoints": true - }, - { - "idx": 12, - "version": "7", - "when": 1783775467529, - "tag": "0012_cute_veda", - "breakpoints": true - }, - { - "idx": 13, - "version": "7", - "when": 1784112584278, - "tag": "0013_sour_dagger", - "breakpoints": true - }, - { - "idx": 14, - "version": "7", - "when": 1784159565663, - "tag": "0014_electric_publication_api_keys", - "breakpoints": true - }, - { - "idx": 15, - "version": "7", - "when": 1784225447696, - "tag": "0015_funny_gabe_jones", - "breakpoints": true - }, - { - "idx": 16, - "version": "7", - "when": 1784586724571, - "tag": "0016_lowly_famine", - "breakpoints": true - }, - { - "idx": 17, - "version": "7", - "when": 1784632119830, - "tag": "0017_powerful_robin_chapel", - "breakpoints": true - }, - { - "idx": 18, - "version": "7", - "when": 1784641149214, - "tag": "0018_brown_brood", - "breakpoints": true - }, - { - "idx": 19, - "version": "7", - "when": 1785017683385, - "tag": "0019_chemical_synch", - "breakpoints": true - }, - { - "idx": 20, - "version": "7", - "when": 1785080420839, - "tag": "0020_material_hannibal_king", - "breakpoints": true - }, - { - "idx": 21, - "version": "7", - "when": 1785080599817, - "tag": "0021_brave_jackpot", - "breakpoints": true - }, - { - "idx": 22, - "version": "7", - "when": 1785149950000, - "tag": "0022_electric_publication_prune", - "breakpoints": true - }, - { - "idx": 23, - "version": "7", - "when": 1785275382874, - "tag": "0023_charming_bulldozer", - "breakpoints": true - }, - { - "idx": 24, - "version": "7", - "when": 1785280474376, - "tag": "0024_burly_grim_reaper", - "breakpoints": true - }, - { - "idx": 25, - "version": "7", - "when": 1785360784276, - "tag": "0025_majestic_randall_flagg", - "breakpoints": true - }, - { - "idx": 26, - "version": "7", - "when": 1785489583849, - "tag": "0026_windy_bromley", - "breakpoints": true - }, - { - "idx": 27, - "version": "7", - "when": 1785514557097, - "tag": "0027_pretty_chat", - "breakpoints": true - }, - { - "idx": 28, - "version": "7", - "when": 1785514557099, - "tag": "0029_purge_orphan_metric_incidents", - "breakpoints": true - }, - { - "idx": 29, - "version": "7", - "when": 1785800580058, - "tag": "0030_planetscale_events", - "breakpoints": true - }, - { - "idx": 30, - "version": "7", - "when": 1785975725201, - "tag": "0031_investigation_lens_runs", - "breakpoints": true - }, - { - "idx": 31, - "version": "7", - "when": 1786007865396, - "tag": "0032_fanout_settings", - "breakpoints": true - }, - { - "idx": 32, - "version": "7", - "when": 1786016554101, - "tag": "0033_lens_run_attempt", - "breakpoints": true - }, - { - "idx": 33, - "version": "7", - "when": 1786016873783, - "tag": "0034_lens_mechanism", - "breakpoints": true - }, - { - "idx": 34, - "version": "7", - "when": 1786059358436, - "tag": "0035_planned_investigations", - "breakpoints": true - }, - { - "idx": 35, - "version": "7", - "when": 1786231852176, - "tag": "0036_remove_org_spend_limits", - "breakpoints": true - }, - { - "idx": 36, - "version": "7", - "when": 1786269900000, - "tag": "0037_electric_publication_investigations", - "breakpoints": true - }, - { - "idx": 37, - "version": "7", - "when": 1786292037508, - "tag": "0038_error_tick_cursor_outbox", - "breakpoints": true - }, - { - "idx": 38, - "version": "7", - "when": 1786300000000, - "tag": "0039_investigation_inconclusive_backfill", - "breakpoints": true - }, - { - "idx": 39, - "version": "7", - "when": 1786793464889, - "tag": "0040_dashboard_shares", - "breakpoints": true - }, - { - "idx": 40, - "version": "7", - "when": 1786832731147, - "tag": "0041_dashboard_share_id_index", - "breakpoints": true - }, - { - "idx": 41, - "version": "7", - "when": 1786963071458, - "tag": "0042_mobile_devices", - "breakpoints": true - }, - { - "idx": 42, - "version": "7", - "when": 1787089609659, - "tag": "0043_alert_destination_auto_disable", - "breakpoints": true - }, - { - "idx": 43, - "version": "7", - "when": 1787093253575, - "tag": "0044_error_fingerprint_v2", - "breakpoints": true - }, - { - "idx": 44, - "version": "7", - "when": 1787131754667, - "tag": "0045_error_regression_tracking", - "breakpoints": true - }, - { - "idx": 45, - "version": "7", - "when": 1787136812507, - "tag": "0046_live_activities", - "breakpoints": true - }, - { - "idx": 46, - "version": "7", - "when": 1787524332738, - "tag": "0047_issue_pull_requests_verification", - "breakpoints": true - }, - { - "idx": 47, - "version": "7", - "when": 1787744924452, - "tag": "0048_anomaly_index_tightening", - "breakpoints": true - }, - { - "idx": 48, - "version": "7", - "when": 1787920777688, - "tag": "0049_home_list_indexes", - "breakpoints": true - }, - { - "idx": 49, - "version": "7", - "when": 1788008344968, - "tag": "0050_cloudflare_grant_accounts", - "breakpoints": true - }, - { - "idx": 50, - "version": "7", - "when": 1788201331961, - "tag": "0051_digest_subscription_scope", - "breakpoints": true - }, - { - "idx": 51, - "version": "7", - "when": 1788253667237, - "tag": "0052_mcp_refresh_family_expiry", - "breakpoints": true - }, - { - "idx": 52, - "version": "7", - "when": 1788259897779, - "tag": "0053_digest_opt_out", - "breakpoints": true - }, - { - "idx": 53, - "version": "7", - "when": 1788285534887, - "tag": "0054_alert_incident_open_uniqueness", - "breakpoints": true - }, - { - "idx": 54, - "version": "7", - "when": 1789339400947, - "tag": "0055_onboarding_reward_claimed", - "breakpoints": true - }, - { - "idx": 55, - "version": "7", - "when": 1789390722895, - "tag": "0056_onboarding_reward_reserved", - "breakpoints": true - }, - { - "idx": 56, - "version": "7", - "when": 1789408571778, - "tag": "0057_alert_incident_hold", - "breakpoints": true - }, - { - "idx": 57, - "version": "7", - "when": 1789425475824, - "tag": "0058_drop_investigation_lanes", - "breakpoints": true - }, - { - "idx": 59, - "version": "7", - "when": 1789684460658, - "tag": "0059_planetscale_issue_receipts", - "breakpoints": true - }, - { - "idx": 60, - "version": "7", - "when": 1789772881572, - "tag": "0060_investigation_progress", - "breakpoints": true - } - ] -} \ No newline at end of file diff --git a/packages/db/package.json b/packages/db/package.json index 8e3e7e7ba..b161cc399 100644 --- a/packages/db/package.json +++ b/packages/db/package.json @@ -15,6 +15,7 @@ "test": "vitest run --passWithNoTests", "db:generate": "drizzle-kit generate --config ./drizzle.config.ts", "db:migrate": "drizzle-kit migrate --config ./drizzle.config.ts", + "db:migrate:preflight": "bun scripts/migrations-preflight.ts", "db:push": "drizzle-kit push --config ./drizzle.config.ts", "db:studio": "drizzle-kit studio --config ./drizzle.config.ts", "db:ensure-privileges": "bun scripts/ensure-privileges.ts", @@ -22,14 +23,18 @@ "db:audit-raw-sql": "bun scripts/audit-raw-sql.ts", "db:normalize-preview": "bun scripts/normalize-preview-ownership.ts", "ps:apply-schema": "bun scripts/planetscale-apply-schema.ts", + "ps:migrations-preflight": "bun scripts/planetscale-migrations-preflight.ts", "db:restore-test": "bun scripts/restore-test.ts", "db:backfill:dashboards-v3": "bun scripts/backfill-dashboard-datasource-v3.ts" }, "dependencies": { - "@electric-sql/pglite": "^0.5.2", + "@effect/sql-pg": "4.0.0-rc.112", + "@effect/sql-pglite": "4.0.0-rc.112", + "@electric-sql/pglite": "^0.5.6", "@maple/domain": "workspace:*", - "drizzle-orm": "^0.45.1", + "drizzle-orm": "1.0.0-rc.5-5935859", "effect": "catalog:effect", + "pg": "^8.23.0", "postgres": "^3.4.9" }, "devDependencies": { @@ -37,7 +42,8 @@ "@effect/language-service": "catalog:effect", "@maple/widgets": "workspace:*", "@types/node": "catalog:tooling", - "drizzle-kit": "^0.31.9", + "@types/pg": "^8.23.1", + "drizzle-kit": "1.0.0-rc.5-5935859", "typescript": "catalog:tooling", "vitest": "catalog:" } diff --git a/packages/db/scripts/migrations-preflight.ts b/packages/db/scripts/migrations-preflight.ts new file mode 100644 index 000000000..24d893ba7 --- /dev/null +++ b/packages/db/scripts/migrations-preflight.ts @@ -0,0 +1,234 @@ +/** + * Preflight for `drizzle-kit migrate` on a database whose + * `drizzle.__drizzle_migrations` table predates drizzle 1.0. + * + * The v1 migrator upgrades that table once, matching every existing row to a + * local migration folder by `created_at` truncated to the second, then by hash, + * and refuses to run if any row matches nothing. Rows like that exist wherever a + * migration was applied and later renumbered or re-timestamped, or came from a + * branch that never merged. This applies the same rules ahead of time and says + * which row is which, so the fix is a deliberate UPDATE or DELETE rather than a + * failed deploy. + * + * DATABASE_URL=postgres://… bun scripts/migrations-preflight.ts + * + * It also lists every local migration no row matches, because the v1 migrator + * applies all of them (the 0.x migrator only applied those newer than the + * newest recorded timestamp). One whose DDL is already in the schema must be + * recorded, not replayed. + * + * Read-only. Exits 1 when the migrator would refuse. + */ +import { createHash } from "node:crypto" +import { readFileSync } from "node:fs" +import { spawnSync } from "node:child_process" +import { resolve } from "node:path" +import postgres from "postgres" +import { listBundledMigrations } from "../src/migrate" + +const migrationsFolder = resolve(import.meta.dir, "../drizzle") + +const url = process.env.DATABASE_URL ?? "postgres://maple:maple@localhost:5499/maple" + +interface LocalMigration { + readonly name: string + readonly suffix: string + readonly millis: number + readonly hash: string +} + +const folderMillis = (name: string): number => { + const stamp = name.slice(0, 14) + const iso = `${stamp.slice(0, 4)}-${stamp.slice(4, 6)}-${stamp.slice(6, 8)}T${stamp.slice(8, 10)}:${stamp.slice(10, 12)}:${stamp.slice(12, 14)}.000Z` + return Date.parse(iso) +} + +const locals: ReadonlyArray = listBundledMigrations().map(({ name, sqlPath }) => ({ + name, + suffix: name.slice(15), + millis: folderMillis(name), + hash: createHash("sha256").update(readFileSync(sqlPath)).digest("hex"), +})) +const byMillis = new Map>() +const byHash = new Map() +for (const local of locals) { + byMillis.set(local.millis, [...(byMillis.get(local.millis) ?? []), local]) + byHash.set(local.hash, local) +} + +/** The migration name a historical path carried: `0003_premium_korg.sql` or `_premium_korg/migration.sql`. */ +const nameFromPath = (path: string): string | undefined => { + const folder = /\/(\d{14})_([^/]+)\/migration\.sql$/.exec(path) + if (folder) return folder[2] + const flat = /\/\d{4}_([^/]+)\.sql$/.exec(path) + return flat ? flat[1] : undefined +} + +interface HistoricalBlob { + readonly oid: string + /** Every migration name this exact SQL has been filed under. More than one is ambiguous. */ + readonly names: ReadonlySet +} + +/** + * Every migration SQL blob this checkout's git history has ever held, keyed by + * its sha256. `rev-list --objects` reports a blob once per path it was reached + * through, so a renumbered file shows up under each of its names; all of them + * are kept, and a digest that maps to more than one name is left to a human. + */ +const historicalBlobs = (): Map => { + const blobs = new Map }>() + // `cwd` pins the pathspec to this folder whichever directory the script runs from. + const listing = spawnSync("git", ["rev-list", "--all", "--objects", "--", "."], { + cwd: migrationsFolder, + encoding: "utf8", + }) + if (listing.status !== 0) return blobs + const digests = new Map() + for (const line of listing.stdout.split("\n")) { + const [oid, path] = line.split(" ", 2) + if (!oid || !path?.endsWith(".sql")) continue + let digest = digests.get(oid) + if (digest === undefined) { + const blob = spawnSync("git", ["cat-file", "blob", oid], { cwd: migrationsFolder }) + if (blob.status !== 0) continue + digest = createHash("sha256").update(blob.stdout).digest("hex") + digests.set(oid, digest) + } + const entry = blobs.get(digest) ?? { oid, names: new Set() } + const name = nameFromPath(path) + if (name !== undefined) entry.names.add(name) + blobs.set(digest, entry) + } + return blobs +} + +/** + * The v1 migrator applies every unrecorded folder, where the 0.x migrator only + * applied those newer than the newest recorded timestamp. A migration whose + * DDL reached the schema without a row used to be skipped and now fails on the + * objects that already exist, so say exactly what will run. + * + * `hasNameColumn` picks the INSERT: before the upgrade the table has no `name`, + * and a row on the folder's second is matched to it by the upgrade itself. + */ +const reportPending = (recordedNames: ReadonlySet, hasNameColumn: boolean): void => { + const pending = locals.filter((local) => !recordedNames.has(local.name)) + console.log(`\n${pending.length} local migration(s) have no row and WILL be applied by the v1 migrator:`) + for (const local of pending) { + const first = readFileSync(resolve(migrationsFolder, local.name, "migration.sql"), "utf8") + .split("\n") + .find((line) => /^(create|alter|drop)\b/i.test(line)) + console.log(` ${local.name}\n ${first?.slice(0, 110) ?? "(no DDL statement)"}`) + } + if (pending.length > 0) { + const insert = hasNameColumn + ? "INSERT INTO drizzle.__drizzle_migrations (hash, created_at, name) VALUES ('', , '');" + : "INSERT INTO drizzle.__drizzle_migrations (hash, created_at) VALUES ('', );" + console.log( + ` If one of these already reached the schema without a row, record it instead of replaying it:\n ${insert}`, + ) + for (const local of pending) + console.log(` ${local.name}: hash ${local.hash} created_at ${local.millis}`) + } +} + +const sql = postgres(url, { max: 1, fetch_types: false }) + +/** The exit code; returned rather than `process.exit`ed so the connection is closed first. */ +const preflight = async (): Promise => { + const columns = await sql<{ column_name: string }[]>` + select column_name from information_schema.columns + where table_schema = 'drizzle' and table_name = '__drizzle_migrations' order by ordinal_position` + if (columns.length === 0) { + console.log("No drizzle.__drizzle_migrations table: a fresh database, nothing to upgrade.") + return 0 + } + if (columns.some((c) => c.column_name === "name")) { + console.log("Migrations table is already on the v1 layout (has `name`); the upgrade will not run.") + const named = await sql<{ name: string | null }[]>`select name from drizzle.__drizzle_migrations` + reportPending(new Set(named.flatMap((row) => (row.name === null ? [] : [row.name]))), true) + return 0 + } + const rows = await sql<{ id: number; created_at: string; hash: string }[]>` + select id, created_at, hash from drizzle.__drizzle_migrations order by id asc` + + const orphans: Array<{ id: number; createdAt: number; hash: string }> = [] + const matchedNames = new Set() + for (const row of rows) { + const createdAt = Number(row.created_at) + const millis = Math.floor(createdAt / 1000) * 1000 + const candidates = byMillis.get(millis) + const found = + candidates && candidates.length === 1 + ? candidates[0] + : candidates && candidates.length > 1 + ? candidates.find((c) => c.hash === row.hash) + : byHash.get(row.hash) + if (found) matchedNames.add(found.name) + else orphans.push({ id: row.id, createdAt, hash: row.hash }) + } + console.log( + `${rows.length} rows, ${matchedNames.size} match a local migration, ${orphans.length} would make the migrator refuse.`, + ) + + reportPending(matchedNames, false) + + if (orphans.length === 0) return 0 + + const history = historicalBlobs() + const recorded = new Set(rows.map((r) => Math.floor(Number(r.created_at) / 1000) * 1000)) + for (const orphan of orphans) { + console.log( + `\nrow ${orphan.id}: created_at ${new Date(orphan.createdAt).toISOString()} hash ${orphan.hash.slice(0, 12)}…`, + ) + const historical = history.get(orphan.hash) + if (!historical) { + console.log(" not in this checkout's history: applied from another branch, decide by hand") + continue + } + const names = [...historical.names] + if (names.length !== 1) { + console.log( + ` this SQL was filed under ${names.length} names (${names.join(", ") || "none recognisable"}): decide by hand`, + ) + continue + } + const name = names[0]! + const currents = locals.filter((l) => l.suffix === name) + console.log(` is the historical ${name}`) + if (currents.length !== 1) { + console.log(` ${currents.length} current migrations carry that name: decide by hand`) + continue + } + const current = currents[0]! + if (recorded.has(current.millis)) { + console.log( + ` superseded: the current ${current.name} is recorded on its own row, so this one is a leftover`, + ) + console.log(` DELETE FROM drizzle.__drizzle_migrations WHERE id = ${orphan.id};`) + } else if (current.hash === orphan.hash) { + // Same SQL under a new timestamp: the row only needs to point at the folder. + console.log(` renumbered as ${current.name} with identical SQL; point the row at it`) + console.log( + ` UPDATE drizzle.__drizzle_migrations SET created_at = ${current.millis} WHERE id = ${orphan.id};`, + ) + } else { + // The SQL changed after this version ran, so the current migration has + // statements this database never saw. No generated UPDATE: relabelling + // the row would record them as applied. + console.log( + ` renumbered as ${current.name} but the SQL differs; this database ran the OLD version`, + ) + console.log(` git diff ${historical.oid} HEAD:packages/db/drizzle/${current.name}/migration.sql`) + console.log(" apply whatever the current version adds by hand, then") + console.log( + ` UPDATE drizzle.__drizzle_migrations SET created_at = ${current.millis}, hash = '${current.hash}' WHERE id = ${orphan.id};`, + ) + } + } + return 1 +} + +const code = await preflight().finally(() => sql.end()) +process.exit(code) diff --git a/packages/db/scripts/planetscale-migrations-preflight.ts b/packages/db/scripts/planetscale-migrations-preflight.ts new file mode 100644 index 000000000..65691cafd --- /dev/null +++ b/packages/db/scripts/planetscale-migrations-preflight.ts @@ -0,0 +1,21 @@ +/** + * `migrations-preflight.ts` against a PlanetScale branch, over the same + * ephemeral credential `ps:apply-schema` uses. Read-only. + * + * bun run --cwd packages/db ps:migrations-preflight main + */ +import { spawnSync } from "node:child_process" +import { resolve } from "node:path" +import { fail, withBranchConnection } from "./planetscale-connection" + +const branch = process.argv[2]?.trim() +if (!branch) fail("Usage: bun packages/db/scripts/planetscale-migrations-preflight.ts ") + +await withBranchConnection(branch as string, async (connectionUrl) => { + const proc = spawnSync("bun", ["run", "db:migrate:preflight"], { + cwd: resolve(import.meta.dir, ".."), + env: { ...process.env, DATABASE_URL: connectionUrl }, + stdio: "inherit", + }) + if (proc.status !== 0) fail("migrations preflight found rows the v1 migrator would refuse") +}) diff --git a/packages/db/src/client.ts b/packages/db/src/client.ts index 58a1b6bd9..383aaa07d 100644 --- a/packages/db/src/client.ts +++ b/packages/db/src/client.ts @@ -1,121 +1,161 @@ -import { drizzle as drizzlePostgres } from "drizzle-orm/postgres-js" -import postgres from "postgres" -import * as schema from "./schema" - -/** The raw postgres.js client — one TCP socket's worth of connection state. */ -export type MaplePgSocket = ReturnType +import * as PgClient from "@effect/sql-pg/PgClient" +import { EffectCache } from "drizzle-orm/cache/core/cache-effect" +import { EffectDrizzleQueryError, EffectLogger } from "drizzle-orm/effect-core" +import * as PgDrizzle from "drizzle-orm/effect-postgres" +import type { EffectPgQueryEffectHKT, EffectPgQueryResultHKT } from "drizzle-orm/effect-postgres" +import type { PgEffectDatabase } from "drizzle-orm/pg-core/effect" +import { Context, Effect, Layer, type Scope } from "effect" +import { SqlError } from "effect/unstable/sql/SqlError" +import { Client, type ClientConfig, Pool } from "pg" /** - * One client, without any drizzle wrapper bound to it. + * The drizzle database every Maple service codes against: Effect-native, over + * `@effect/sql-pg` on Workers and `@effect/sql-pglite` in tests. Queries are + * Effects (`yield* db.select()…`), transactions take an Effect callback, and + * every failure lands in the typed channel as a `MapleDbError`. * - * A caller holds ONE of these across many logical calls while still giving each - * call its own `onQuery` collector — drizzle fixes its logger at construction, - * so collector isolation has to come from a per-call `wrapMaplePgClient`, not - * from a per-call client. + * The driver-neutral base class rather than `effect-postgres`'s + * `EffectPgDatabase`: the two drivers' classes differ only in `$client`, which + * nothing above the platform layer reads, so both are one type without a cast. + * It is also what a `tx` is, so helpers take it inside or outside a transaction. * - * There is deliberately no "wait until connected" member. postgres.js connects - * lazily on the first query, so a separate connect step can only be synthesized - * with a `select 1`, and that round trip bought nothing but a telemetry split. - * Its absence is what lets the request path create a client synchronously. + * No `relations` are registered: Maple uses the SQL-like query builder only, + * never `db.query.*`. */ -export interface MaplePgSocketHandle { - /** The raw postgres.js client. Wrap it per call with `wrapMaplePgClient`. */ - readonly sql: MaplePgSocket - /** Closes the underlying postgres.js connection pool. */ - readonly end: () => Promise -} +export type MapleDb = PgEffectDatabase + +/** The `tx` handed to a `db.transaction` callback. */ +export type MapleTx = Parameters[0]>[0] + +/** Either a database or a transaction — for helpers that run inside or outside one. */ +export type MapleDbLike = MapleDb + +/** + * What a query or transaction fails with below the `Database` service. + * `EffectDrizzleQueryError` wraps a statement failure (its `cause` is the + * `SqlError`, whose `reason` is `@effect/sql`'s classification of the pg error); + * `SqlError` on its own comes from transaction control (`BEGIN`, `COMMIT`). + */ +export type MapleDbError = EffectDrizzleQueryError | SqlError + +export const isMapleDbError = (value: unknown): value is MapleDbError => + value instanceof EffectDrizzleQueryError || value instanceof SqlError + +/** + * The per-call statement collector. `Database.execute` provides one around + * each call; the drizzle logger below reads it when a statement runs, so every + * parameterized statement (including inside a transaction) lands on that + * call's span as `db.query.text`. A reference rather than a per-call drizzle + * wrapper: the logger is fixed when the database is built, but `logQuery` + * returns an Effect and therefore sees the calling fiber's context. + */ +export class MapleStatementCollector extends Context.Reference<((query: string) => void) | undefined>( + "@maple/db/MapleStatementCollector", + { defaultValue: () => undefined }, +) {} + +const mapleDrizzleLogger = Layer.succeed(EffectLogger, { + logQuery: (query) => + Effect.gen(function* () { + const collect = yield* MapleStatementCollector + collect?.(query) + }), +}) + +/** + * Drizzle's default no-op cache plus Maple's collecting logger. Not + * `PgDrizzle.DefaultServices`, which bundles a no-op logger that would shadow + * this one. + */ +export const mapleDrizzleServices = Layer.merge(mapleDrizzleLogger, EffectCache.Default) -export interface MaplePgSocketOptions { +/** A node-postgres pool — one per invocation on Workers, dialed lazily on the first statement. */ +export type MaplePgPool = Pool + +export interface MaplePgPoolOptions { readonly maxConnections?: number /** - * postgres.js `connect_timeout`, in SECONDS. Unset, the driver default of 30s - * applies — but worse, postgres.js's `timer()` is a no-op when the option is - * absent, so `connectTimedOut()` never fires and a stalled dial has no bound - * at all and produces no `CONNECT_TIMEOUT` to classify. Always pass this; see - * `CONNECT_TIMEOUT_SECONDS` in apps/api/src/platform/pg-connection-scope.ts. + * Bound on one socket dial, in SECONDS. Unset, a stalled dial has no bound at + * all. Always pass this; see `CONNECT_TIMEOUT_SECONDS` in + * packages/backend/src/platform/pg-connection-scope.ts. + * + * Set on each `Client`, never on the `Pool`: pg-pool applies a pool-level + * `connectionTimeoutMillis` to waiting for a free client as well, so a + * fan-out wider than the pool would fail as a connection error after that + * long although the server is healthy. postgres.js bounded only the dial. * - * This is the driver option rather than an `Effect.timeout` on purpose: - * interrupting the fiber does not cancel the underlying promise, so the socket - * would keep dialing and keep holding its connection slot. Only - * `connect_timeout` calls `socket.destroy()` and frees the slot. + * The driver option rather than an `Effect.timeout` on purpose: interrupting + * the fiber does not cancel the socket, so only the driver's own timer frees + * the connection slot. */ readonly connectTimeoutSeconds?: number } -export interface MaplePgClientOptions extends MaplePgSocketOptions { - /** - * Called once per executed statement with the parameterized SQL ($1 - * placeholders — params are never inlined). Fires for statements inside - * `db.transaction` callbacks too; `BEGIN`/`COMMIT` are issued below drizzle - * and are not reported. - */ - readonly onQuery?: (query: string) => void -} - -export const toDrizzleLogger = (onQuery: ((query: string) => void) | undefined) => - onQuery ? { logQuery: (query: string, _params: unknown[]) => onQuery(query) } : undefined - /** - * Create one postgres.js client, for real Postgres (PlanetScale via Hyperdrive + * Create one node-postgres pool, for real Postgres (PlanetScale via Hyperdrive * in Workers, docker-compose Postgres under `alchemy dev`, direct URLs in * scripts). * - * Creating one costs nothing: postgres.js connects lazily on the first query, - * so this is synchronous and does not touch the network. + * Creating one costs nothing: the pool dials on the first statement, so this is + * synchronous and does not touch the network. There is deliberately no probe + * (`PgClient.make` runs `SELECT 1` at acquire); a round trip on every request + * bought nothing but a telemetry split, which `error.type` now states outright. * - * Workers note: TCP sockets are tied to the request that opened them, so a - * client may be reused freely WITHIN a request but must never outlive it. The - * request path holds one of these per request (`maxConnections: 1`) and `end()`s - * it at the boundary — see apps/api/src/platform/pg-connection-scope.ts. - * `fetch_types: false` skips the pg_types round-trip (we only use built-in - * types). + * Workers note: TCP sockets are tied to the request that opened them, so a pool + * may be reused freely WITHIN a request but must never outlive it. The request + * path holds one of these per request and ends it at the boundary. * - * `prepare: false` because the named-statement cache is per connection: a - * request-lived client would have to re-issue every statement's Parse on the - * next request anyway, and named statements are the classic way to pin a - * connection in a pooler. Hyperdrive multiplexes client connections over its - * origin pool, so the unnamed extended protocol is the safer default. - * Cloudflare's own example now suggests `prepare: true`; that only pays off - * across reuse of one long-lived connection, which a request-lived client by - * definition does not have. Do not flip it back without measuring. + * Unnamed statements only (node-postgres prepares nothing unless a statement + * is given a `name`), which is what a pooler-fronted, request-lived connection + * wants: a named statement is per connection and the classic way to pin one. */ -export const createMaplePgSocket = ( - connectionString: string, - options?: MaplePgSocketOptions, -): MaplePgSocketHandle => { +export const createMaplePgPool = (connectionString: string, options?: MaplePgPoolOptions): MaplePgPool => { const connectTimeoutSeconds = options?.connectTimeoutSeconds - const sql = postgres(connectionString, { + const pool = new Pool({ + connectionString, max: options?.maxConnections ?? 5, - fetch_types: false, - prepare: false, - // Spread rather than pass `undefined`: postgres.js coerces the option - // through its integer parser, and an explicit undefined would not fall - // back to the driver default. - ...(!(connectTimeoutSeconds === undefined) ? { connect_timeout: connectTimeoutSeconds } : undefined), + ...(!(connectTimeoutSeconds === undefined) + ? { Client: dialBoundedClient(connectTimeoutSeconds * 1000) } + : undefined), }) - return { sql, end: () => sql.end() } + // An idle client's socket error is emitted on the pool; unhandled, it is an + // uncaught exception rather than the next statement's failure. + pool.on("error", () => undefined) + return pool } -/** - * Bind a drizzle client to an already-dialed socket. - * - * Cheap enough to call per logical DB call — it only re-derives drizzle's - * relational config, it does not touch the network. Calling it per call is what - * keeps each call's `onQuery` collector isolated while they share one socket; - * `DatabasePgliteLive` does the same thing over a shared PGlite instance for - * exactly this reason. - */ -export const wrapMaplePgClient = ( - sql: MaplePgSocket, - options?: Pick, -): MaplePgClient => drizzlePostgres(sql, { schema, logger: toDrizzleLogger(options?.onQuery) }) +/** A `Client` whose own dial timer is the bound; the pool it is handed to sets none. */ +const dialBoundedClient = (connectionTimeoutMillis: number): typeof Client => + class DialBoundedClient extends Client { + constructor(config?: string | ClientConfig) { + super( + typeof config === "string" + ? { connectionString: config, connectionTimeoutMillis } + : { ...config, connectionTimeoutMillis }, + ) + } + } /** - * The canonical client type the app codes against. PostgresJsDatabase and - * PgliteDatabase share the PgDatabase core; the PGlite layer casts into this. + * Build the drizzle database over a pool the caller acquires. + * + * `acquire` runs inside the given Scope, and the pool is ended when that Scope + * closes — the invocation-scope machinery in `pg-connection-scope.ts` owns + * both. The client layer is built with `Layer.build` rather than + * `Effect.provide` for exactly that reason: `provide` scopes the layer to the + * effect it wraps and would end the pool the moment the database was built. + * `PgClient.fromPool` rather than `PgClient.make` because `make` probes with + * `SELECT 1` at acquire and caps `pool.end()` at one second. */ -export type MaplePgClient = ReturnType> - -/** Drizzle over an embedded PGlite instance — local dev and vitest. */ - -export type MapleDatabaseTransaction = Parameters[0]>[0] +export const makeMapleEffectDb = ( + acquire: Effect.Effect, +): Effect.Effect => + Effect.gen(function* () { + const services = yield* Layer.build( + Layer.merge( + mapleDrizzleServices, + PgClient.layerFrom(PgClient.fromPool({ acquire })), + ), + ) + return yield* PgDrizzle.make().pipe(Effect.provideContext(services)) + }) diff --git a/packages/db/src/migrate.ts b/packages/db/src/migrate.ts index 4bfab6350..896c7390b 100644 --- a/packages/db/src/migrate.ts +++ b/packages/db/src/migrate.ts @@ -4,38 +4,45 @@ import { fileURLToPath } from "node:url" import type { PGlite } from "@electric-sql/pglite" import { drizzle } from "drizzle-orm/pglite" import { migrate } from "drizzle-orm/pglite/migrator" -import * as schema from "./schema" const migrationsFolder = () => resolve(dirname(fileURLToPath(import.meta.url)), "../drizzle") /** * Applies the bundled drizzle migrations to an embedded PGlite instance. - * Local-dev and test path only — deployed stages run `drizzle-kit migrate` - * against the real Postgres in CI before `alchemy deploy`. + * Local-dev and test path only — production runs `drizzle-kit migrate` by hand + * (`bun run migrate:prod`) before the Worker deploy. */ export const runMigrations = async (pglite: PGlite): Promise => { - const db = drizzle(pglite, { schema }) + const db = drizzle({ client: pglite }) await migrate(db, { migrationsFolder: migrationsFolder() }) } let cachedMigrationsSql: string | undefined +/** drizzle-kit v1 layout: one `_/migration.sql` folder per migration, in name order. */ +export const listBundledMigrations = (): ReadonlyArray<{ + readonly name: string + readonly sqlPath: string +}> => { + const dir = migrationsFolder() + return readdirSync(dir, { withFileTypes: true }) + .filter((entry) => entry.isDirectory()) + .map((entry) => entry.name) + .sort() + .map((name) => ({ name, sqlPath: join(dir, name, "migration.sql") })) +} + /** - * The bundled migration SQL (all `drizzle/*.sql` in filename order), read and - * concatenated once. The test harness applies this via a single - * `pglite.exec()` per instance instead of the drizzle migrator — no per-test - * filesystem reads or `__drizzle_migrations` bookkeeping, which matters when - * hundreds of fresh PGlite instances boot under CI contention. Fine for - * ephemeral PGlite (always built from scratch); deployed Postgres still uses - * the real `drizzle-kit migrate`. + * The bundled migration SQL, concatenated once in the migrator's own order + * (folder name, which the kit derives from the migration timestamp). The test + * harness keys its pre-migrated PGlite snapshot on a hash of this text, so any + * new migration invalidates the snapshot automatically. Deployed Postgres still + * uses the real `drizzle-kit migrate`. */ export const readBundledMigrationsSql = (): string => { if (cachedMigrationsSql !== undefined) return cachedMigrationsSql - const dir = migrationsFolder() - const sql = readdirSync(dir) - .filter((file) => file.endsWith(".sql")) - .sort() - .map((file) => readFileSync(join(dir, file), "utf8")) + const sql = listBundledMigrations() + .map(({ sqlPath }) => readFileSync(sqlPath, "utf8")) .join("\n") cachedMigrationsSql = sql return sql diff --git a/packages/db/src/migrations.test.ts b/packages/db/src/migrations.test.ts index fe312abab..a267adb7f 100644 --- a/packages/db/src/migrations.test.ts +++ b/packages/db/src/migrations.test.ts @@ -1,102 +1,161 @@ // SAFETY-FILE: JSON in this test is emitted by the fixture or unit under test before its fields are asserted. -import { - readdirSync, - readFileSync, - mkdtempSync, - mkdirSync, - writeFileSync, - copyFileSync, - rmSync, -} from "node:fs" +import { createHash } from "node:crypto" +import { cpSync, mkdtempSync, rmSync } from "node:fs" +import { readFileSync } from "node:fs" import { tmpdir } from "node:os" -import { drizzle } from "drizzle-orm/pglite" -import { migrate } from "drizzle-orm/pglite/migrator" import { dirname, resolve } from "node:path" -import { fileURLToPath } from "node:url" import { PGlite } from "@electric-sql/pglite" +import { drizzle } from "drizzle-orm/pglite" +import { migrate } from "drizzle-orm/pglite/migrator" import { describe, expect, it } from "vitest" -import { readBundledMigrationsSql } from "./migrate" - -type MigrationJournal = { - readonly entries: ReadonlyArray<{ - readonly idx: number - readonly tag: string - readonly when: number - }> -} +import { listBundledMigrations, readBundledMigrationsSql } from "./migrate" -const readJournal = (): MigrationJournal => { - const path = resolve(dirname(fileURLToPath(import.meta.url)), "../drizzle/meta/_journal.json") - return JSON.parse(readFileSync(path, "utf8")) as MigrationJournal +/** The folder for a migration by its name (the part after the kit's timestamp prefix). */ +const migrationNamed = (name: string) => { + const matches = listBundledMigrations().filter((migration) => migration.name.endsWith(`_${name}`)) + if (matches.length !== 1) + throw new Error(`expected exactly one migration named ${name}, found ${matches.length}`) + return matches[0]! } -const migrationsDir = () => resolve(dirname(fileURLToPath(import.meta.url)), "../drizzle") +const readMigrationSql = (name: string): string => readFileSync(migrationNamed(name).sqlPath, "utf8") -const readMigrationSqlBefore = (tag: string): string => - readdirSync(migrationsDir()) - .filter((file) => file.endsWith(".sql") && file < `${tag}.sql`) - .sort() - .map((file) => readFileSync(resolve(migrationsDir(), file), "utf8")) +const readMigrationSqlBefore = (name: string): string => { + const stop = migrationNamed(name).name + return listBundledMigrations() + .filter((migration) => migration.name < stop) + .map((migration) => readFileSync(migration.sqlPath, "utf8")) .join("\n") +} describe("drizzle migrations", () => { - it("keeps journal timestamps increasing in migration order", () => { - const { entries } = readJournal() - - for (let i = 0; i < entries.length; i++) { - expect(Number.isSafeInteger(entries[i]!.idx)).toBe(true) - expect(entries[i]!.idx).toBeGreaterThanOrEqual(0) - if (i === 0) continue - // Gaps preserve published migration filenames when branches converge. - expect(entries[i]!.idx).toBeGreaterThan(entries[i - 1]!.idx) + it("keeps migration folders in a strictly increasing timestamp order", () => { + const migrations = listBundledMigrations() + expect(migrations.length).toBeGreaterThan(0) - // Drizzle only compares each journal timestamp against the highest - // created_at already recorded in the DB. A lower timestamp after a - // deployed migration is silently skipped on the next migrate. + for (let i = 1; i < migrations.length; i++) { + // The v1 migrator orders folders by name, and the kit derives the + // 14-digit prefix from the migration timestamp. A folder that sorts + // before an already-deployed one still applies (v1 applies every missing + // migration), but the replay order in fresh databases would differ from + // production's, which is how a dependency between two migrations hides. expect( - entries[i]!.when, - `${entries[i]!.tag} must be newer than ${entries[i - 1]!.tag}`, - ).toBeGreaterThan(entries[i - 1]!.when) + migrations[i]!.name.slice(0, 14) >= migrations[i - 1]!.name.slice(0, 14), + `${migrations[i]!.name} must not predate ${migrations[i - 1]!.name}`, + ).toBe(true) } }) - it("keeps the next generated index beyond every existing migration and snapshot prefix", () => { - const { entries } = readJournal() - const nextIndex = entries.at(-1)!.idx + 1 - for (const directory of [migrationsDir(), resolve(migrationsDir(), "meta")]) { - for (const file of readdirSync(directory)) { - const prefix = /^(\d+)_/.exec(file)?.[1] - if (prefix !== undefined) expect(nextIndex, file).toBeGreaterThan(Number(prefix)) + /** + * Production's first v1 run: the table is still on the 0.x shape. The upgrade + * must match every row by its second (0.x stored the journal's millis) or, for + * a same-second pair, by hash, and apply nothing. The last rows use the + * preflight's pre-upgrade INSERT, which has no `name` column to fill. + */ + const legacyTable = async (pg: PGlite) => { + await pg.exec(` + CREATE SCHEMA drizzle; + CREATE TABLE drizzle.__drizzle_migrations (id SERIAL PRIMARY KEY, hash text NOT NULL, created_at bigint); + `) + return listBundledMigrations().map((migration) => { + const stamp = migration.name.slice(0, 14) + return { + name: migration.name, + hash: createHash("sha256").update(readFileSync(migration.sqlPath)).digest("hex"), + millis: Date.UTC( + Number(stamp.slice(0, 4)), + Number(stamp.slice(4, 6)) - 1, + Number(stamp.slice(6, 8)), + Number(stamp.slice(8, 10)), + Number(stamp.slice(10, 12)), + Number(stamp.slice(12, 14)), + ), } + }) + } + + it("upgrades a 0.x migrations table in place without replaying anything", async () => { + const pg = new PGlite() + try { + const locals = await legacyTable(pg) + const preflightRecorded = 3 + for (const [index, local] of locals.entries()) { + const createdAt = + index < locals.length - preflightRecorded ? local.millis + 437 : local.millis + await pg.query( + "INSERT INTO drizzle.__drizzle_migrations (hash, created_at) VALUES ($1, $2)", + [local.hash, createdAt], + ) + } + const full = dirname(dirname(listBundledMigrations()[0]!.sqlPath)) + // No schema exists, so replaying any migration would fail on a missing table. + await migrate(drizzle({ client: pg }), { migrationsFolder: full }) + + const rows = await pg.query<{ name: string | null }>( + "SELECT name FROM drizzle.__drizzle_migrations ORDER BY id", + ) + expect(rows.rows.map((row) => row.name)).toEqual(locals.map((local) => local.name)) + const tables = await pg.query<{ count: number }>( + "SELECT count(*)::int AS count FROM information_schema.tables WHERE table_schema = 'public'", + ) + expect(tables.rows[0]?.count).toBe(0) + } finally { + await pg.close() } - }) + }, 30_000) - it("upgrades the incident-hold migration head to receipts and safely re-runs", async () => { - const directory = mkdtempSync(resolve(tmpdir(), "maple-receipts-upgrade-")) + it("refuses a 0.x table with a row no folder matches and leaves it untouched", async () => { const pg = new PGlite() try { - const journal = readJournal() - const head = journal.entries.findIndex((entry) => entry.tag === "0057_alert_incident_hold") - expect(head).toBeGreaterThanOrEqual(0) - const entries = journal.entries.slice(0, head + 1) - mkdirSync(resolve(directory, "meta")) - writeFileSync(resolve(directory, "meta/_journal.json"), JSON.stringify({ ...journal, entries })) - for (const entry of entries) - copyFileSync( - resolve(migrationsDir(), `${entry.tag}.sql`), - resolve(directory, `${entry.tag}.sql`), + const locals = await legacyTable(pg) + for (const local of locals) + await pg.query( + "INSERT INTO drizzle.__drizzle_migrations (hash, created_at) VALUES ($1, $2)", + [local.hash, local.millis], ) - const db = drizzle(pg) + await pg.query("INSERT INTO drizzle.__drizzle_migrations (hash, created_at) VALUES ($1, $2)", [ + "0".repeat(64), + Date.UTC(2026, 0, 1), + ]) + const full = dirname(dirname(listBundledMigrations()[0]!.sqlPath)) + await expect(migrate(drizzle({ client: pg }), { migrationsFolder: full })).rejects.toThrow() + + const columns = await pg.query<{ column_name: string }>( + "SELECT column_name FROM information_schema.columns WHERE table_schema = 'drizzle' AND table_name = '__drizzle_migrations' ORDER BY ordinal_position", + ) + expect(columns.rows.map((row) => row.column_name)).toEqual(["id", "hash", "created_at"]) + } finally { + await pg.close() + } + }, 30_000) + + it("upgrades a database at the incident-hold head to receipts and safely re-runs", async () => { + // A database migrated up to `alert_incident_hold` (production's head before + // this line of work), then migrated with the full folder: the receipts table + // and its predecessors land, a row written between the two runs survives a + // third run, and the migrations table ends up with one row per folder. + const directory = mkdtempSync(resolve(tmpdir(), "maple-receipts-upgrade-")) + const pg = new PGlite() + try { + const head = migrationNamed("alert_incident_hold").name + const migrations = listBundledMigrations() + const upTo = migrations.filter((migration) => migration.name <= head) + for (const migration of upTo) { + cpSync(dirname(migration.sqlPath), resolve(directory, migration.name), { recursive: true }) + } + const db = drizzle({ client: pg }) await migrate(db, { migrationsFolder: directory }) const before = await pg.query<{ count: number }>( "SELECT count(*)::int AS count FROM drizzle.__drizzle_migrations", ) - expect(before.rows[0]?.count).toBe(entries.length) - await migrate(db, { migrationsFolder: migrationsDir() }) + expect(before.rows[0]?.count).toBe(upTo.length) + + const full = dirname(dirname(migrations[0]!.sqlPath)) + await migrate(db, { migrationsFolder: full }) await pg.exec( "INSERT INTO planetscale_issue_receipts (org_id, event_id, processed_at) VALUES ('org-upgrade', 'event-upgrade', now())", ) - await migrate(db, { migrationsFolder: migrationsDir() }) + await migrate(db, { migrationsFolder: full }) const receipts = await pg.query<{ event_id: string }>( "SELECT event_id FROM planetscale_issue_receipts", ) @@ -104,14 +163,7 @@ describe("drizzle migrations", () => { const after = await pg.query<{ count: number }>( "SELECT count(*)::int AS count FROM drizzle.__drizzle_migrations", ) - expect(after.rows[0]?.count).toBe(journal.entries.length) - const columns = await pg.query<{ column_name: string }>( - "SELECT column_name FROM information_schema.columns WHERE table_name = 'org_onboarding_state' AND column_name IN ('reward_claimed_at', 'reward_reserved_at') ORDER BY column_name", - ) - expect(columns.rows.map((row) => row.column_name)).toEqual([ - "reward_claimed_at", - "reward_reserved_at", - ]) + expect(after.rows[0]?.count).toBe(migrations.length) const holdColumns = await pg.query<{ column_name: string }>( "SELECT column_name FROM information_schema.columns WHERE table_name = 'alert_incidents' AND column_name IN ('hold_reason', 'held_since') ORDER BY column_name", ) @@ -126,7 +178,7 @@ describe("drizzle migrations", () => { * A migration is only recorded in `drizzle.__drizzle_migrations` after the * whole file succeeds, so one that dies halfway leaves the branch with some of * its DDL applied and no record of it — and every retry replays from the top - * and fails on what it already created. `0035` hit exactly that on `main` + * and fails on what it already created. `planned_investigations` (0035) hit exactly that on `main` * (`42701 duplicate_column` on `lens_name`), and the only fixes that do not * involve hand-writing production state are idempotent DDL. * @@ -135,17 +187,18 @@ describe("drizzle migrations", () => { * would pass for a file that says the words and still is not re-runnable. */ it("re-applies the idempotent migrations without error", async () => { - const idempotent = ["0035_planned_investigations"] + const idempotent = ["planned_investigations"] // Replayed at its own point in history: a later migration may legitimately - // drop what an earlier one added (0058 drops the lane table 0035 extends), - // and what has to hold is that a half-applied branch converged at the time. - for (const tag of idempotent) { + // drop what an earlier one added (drop_investigation_lanes drops the lane + // table planned_investigations extends), and what has to hold is that a + // half-applied branch converged at the time. + for (const name of idempotent) { const pg = new PGlite() - await pg.exec(readMigrationSqlBefore(tag)) - const sql = readFileSync(resolve(migrationsDir(), `${tag}.sql`), "utf8") + await pg.exec(readMigrationSqlBefore(name)) + const sql = readMigrationSql(name) await pg.exec(sql) - await expect(pg.exec(sql), `${tag} must be re-runnable`).resolves.toBeDefined() + await expect(pg.exec(sql), `${name} must be re-runnable`).resolves.toBeDefined() await pg.close() } }, 30_000) @@ -239,7 +292,7 @@ describe("bundled migrations", () => { it("deletes metric rules and removes retired destinations", async () => { const pg = new PGlite() - await pg.exec(readMigrationSqlBefore("0026_windy_bromley")) + await pg.exec(readMigrationSqlBefore("windy_bromley")) const now = "2026-07-31T00:00:00.000Z" await pg.query( @@ -300,7 +353,7 @@ describe("bundled migrations", () => { [now], ) - await pg.exec(readFileSync(resolve(migrationsDir(), "0026_windy_bromley.sql"), "utf8")) + await pg.exec(readMigrationSql("windy_bromley")) for (const table of [ "alert_delivery_events", diff --git a/packages/db/src/pglite.ts b/packages/db/src/pglite.ts index c5460a9d3..29f3b3454 100644 --- a/packages/db/src/pglite.ts +++ b/packages/db/src/pglite.ts @@ -1,10 +1,27 @@ -import type { PGlite } from "@electric-sql/pglite" -import { drizzle } from "drizzle-orm/pglite" -import { type MaplePgClientOptions, toDrizzleLogger } from "./client" -import * as schema from "./schema" +import * as PgliteClient from "@effect/sql-pglite/PgliteClient" +import type { PGliteInterface } from "@electric-sql/pglite" +import * as PgliteDrizzle from "drizzle-orm/effect-pglite" +import { Effect, Layer, type Scope } from "effect" +import type { SqlError } from "effect/unstable/sql/SqlError" +import { mapleDrizzleServices } from "./client" // Kept out of `./client` so the Workers do not bundle the embedded-Postgres driver. -export const createMaplePgliteClient = (pglite: PGlite, options?: Pick) => - drizzle(pglite, { schema, logger: toDrizzleLogger(options?.onQuery) }) -export type MaplePgliteClient = ReturnType +/** Drizzle over an embedded PGlite instance — local dev and vitest. */ +export type MaplePgliteDb = PgliteDrizzle.EffectPgDatabase + +/** + * Build the Effect drizzle database over an instance the caller owns. The + * instance is not closed when the Scope ends; the test harness closes it. + */ +export const makeMaplePgliteDb = ( + pglite: PGliteInterface, +): Effect.Effect => + Effect.gen(function* () { + // Built into the caller's Scope, as `makeMapleEffectDb` does, so the client + // lives as long as the database that was built over it. + const services = yield* Layer.build( + Layer.merge(mapleDrizzleServices, PgliteClient.layer({ liveClient: pglite })), + ) + return yield* PgliteDrizzle.make().pipe(Effect.provideContext(services)) + })